diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2016-09-23 09:18:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-28 15:02:33 +0100 |
commit | 99b9efb9930b37863ceee073a479ea62e4c4ff73 (patch) | |
tree | de9dee42bfb3db050dc8452d0a03eb66d5fb137f /documentation | |
parent | e7e61507db67acdc0b24d7c554bb2b4b28e243f9 (diff) | |
download | poky-99b9efb9930b37863ceee073a479ea62e4c4ff73.tar.gz |
dev-manual: Updates to the on-target debugging section.
Fixes [YOCTO #9554]
I applied some review comments for the section on using GDB
on the target for debugging. Included a new note on optimizations
considerations.
(From yocto-docs rev: 23f0dd82f682ea39849de0f589ee1ebfb16be749)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index b20d9c32f3..4cdd805cec 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -9875,7 +9875,10 @@ | |||
9875 | 9875 | ||
9876 | <para> | 9876 | <para> |
9877 | The previous section addressed using GDB remotely for debugging | 9877 | The previous section addressed using GDB remotely for debugging |
9878 | purposes. | 9878 | purposes, which is the most usual case due to the inherent |
9879 | hardware limitations on many embedded devices. | ||
9880 | However, debugging in the target hardware itself is also possible | ||
9881 | with the most powerful devices. | ||
9879 | This section describes what you need to do in order to support | 9882 | This section describes what you need to do in order to support |
9880 | using GDB to debug on the target hardware. | 9883 | using GDB to debug on the target hardware. |
9881 | </para> | 9884 | </para> |
@@ -9910,6 +9913,22 @@ | |||
9910 | </literallayout> | 9913 | </literallayout> |
9911 | </para></listitem> | 9914 | </para></listitem> |
9912 | </itemizedlist> | 9915 | </itemizedlist> |
9916 | <note> | ||
9917 | To improve the debug information accuracy, you can reduce the | ||
9918 | level of optimization used by the compiler. | ||
9919 | For example, when adding the following line to your | ||
9920 | <filename>local.conf</filename> file, you will reduce | ||
9921 | optimization from | ||
9922 | <ulink url='&YOCTO_DOCS_REF_URL;#var-FULL_OPTIMIZATION'><filename>FULL_OPTIMIZATION</filename></ulink> | ||
9923 | of "-O2" to | ||
9924 | <ulink url='&YOCTO_DOCS_REF_URL;#var-DEBUG_OPTIMIZATION'><filename>DEBUG_OPTIMIZATION</filename></ulink> | ||
9925 | of "-O -fno-omit-frame-pointer": | ||
9926 | <literallayout class='monospaced'> | ||
9927 | DEBUG_BUILD = "1" | ||
9928 | </literallayout> | ||
9929 | Consider that this will reduce the application's performance | ||
9930 | and is recommended only for debugging purposes. | ||
9931 | </note> | ||
9913 | </para> | 9932 | </para> |
9914 | </section> | 9933 | </section> |
9915 | 9934 | ||