diff options
Diffstat (limited to 'documentation/dev-manual')
-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. |