diff options
| author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-04-10 10:56:16 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-11 12:22:30 +0100 |
| commit | 1ae6f9d89e2aab93255434f1399d52e341e16ecd (patch) | |
| tree | 3ca00661c0967743b394326c2a6c62bd9a116179 /documentation | |
| parent | 24eea964f095d86486ce0755e7a290c9d689bb5c (diff) | |
| download | poky-1ae6f9d89e2aab93255434f1399d52e341e16ecd.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.xml | 16 |
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. |
