summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml21
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