summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2013-04-10 10:56:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-11 12:22:36 +0100
commit120faaf7be25794ca4a1629604cd6f3e6e0fc4ca (patch)
tree985f5a7a065ca7873bd86484ed1123de7bf95026 /documentation
parentc973b36249f4347c482392b3bb8ca20a1b41d494 (diff)
downloadpoky-120faaf7be25794ca4a1629604cd6f3e6e0fc4ca.tar.gz
dev-manual: Edits to remote GDB debugging section.
Fixes YOCTO #3540 Further minor edits to make the example consistent. (From yocto-docs rev: 863a955f5cf119a38db4950101270bd5a53da027) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index c509d12c54..db12ca518d 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -3900,13 +3900,13 @@
3900 3900
3901 <para> 3901 <para>
3902 As an example, to launch Gdbserver on the target and make it 3902 As an example, to launch Gdbserver on the target and make it
3903 ready to "debug" a program located in the 3903 ready to "debug" a binary named
3904 <filename>/usr/bin/hello</filename> directory, from the host 3904 <filename>helloworld</filename>, from the host
3905 you need to enter a command like the following. 3905 you need to enter a command like the following.
3906 This command connects to the target and launches Gdbserver 3906 This command connects to the target and launches Gdbserver
3907 on the target: 3907 on the target:
3908 <literallayout class='monospaced'> 3908 <literallayout class='monospaced'>
3909 $ gdbserver localhost:2345 /usr/bin/hello 3909 $ gdbserver localhost:2345 /usr/bin/helloworld
3910 </literallayout> 3910 </literallayout>
3911 Gdbserver should now be listening on port 2345 for debugging 3911 Gdbserver should now be listening on port 2345 for debugging
3912 commands coming from a remote GDB process that is running on 3912 commands coming from a remote GDB process that is running on
@@ -4005,12 +4005,12 @@
4005 Finally, switch to the directory where the binary resides 4005 Finally, switch to the directory where the binary resides
4006 and run the <filename>cross-gdb</filename> binary. 4006 and run the <filename>cross-gdb</filename> binary.
4007 Provide the binary file you are going to debug. 4007 Provide the binary file you are going to debug.
4008 For example, the following command form continues with the 4008 For example, the following command continues with the
4009 example used in the previous section. 4009 example used in the previous section by loading
4010 This command form loads the <filename>helloworld</filename> 4010 the <filename>helloworld</filename> binary as well as the
4011 binary as well as the debugging information: 4011 debugging information:
4012 <literallayout class='monospaced'> 4012 <literallayout class='monospaced'>
4013 $ i586-poky-linux-gdb helloworld 4013 $ arm-poky-linux-gnuabi-gdb helloworld
4014 </literallayout> 4014 </literallayout>
4015 The commands in your <filename>.gdbinit</filename> execute 4015 The commands in your <filename>.gdbinit</filename> execute
4016 and the GDB prompt appears. 4016 and the GDB prompt appears.