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>
This commit is contained in:
parent
24eea964f0
commit
1ae6f9d89e
|
@ -3900,13 +3900,13 @@
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
As an example, to launch Gdbserver on the target and make it
|
As an example, to launch Gdbserver on the target and make it
|
||||||
ready to "debug" a program located in the
|
ready to "debug" a binary named
|
||||||
<filename>/usr/bin/hello</filename> directory, from the host
|
<filename>helloworld</filename>, from the host
|
||||||
you need to enter a command like the following.
|
you need to enter a command like the following.
|
||||||
This command connects to the target and launches Gdbserver
|
This command connects to the target and launches Gdbserver
|
||||||
on the target:
|
on the target:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ gdbserver localhost:2345 /usr/bin/hello
|
$ gdbserver localhost:2345 /usr/bin/helloworld
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Gdbserver should now be listening on port 2345 for debugging
|
Gdbserver should now be listening on port 2345 for debugging
|
||||||
commands coming from a remote GDB process that is running on
|
commands coming from a remote GDB process that is running on
|
||||||
|
@ -4005,12 +4005,12 @@
|
||||||
Finally, switch to the directory where the binary resides
|
Finally, switch to the directory where the binary resides
|
||||||
and run the <filename>cross-gdb</filename> binary.
|
and run the <filename>cross-gdb</filename> binary.
|
||||||
Provide the binary file you are going to debug.
|
Provide the binary file you are going to debug.
|
||||||
For example, the following command form continues with the
|
For example, the following command continues with the
|
||||||
example used in the previous section.
|
example used in the previous section by loading
|
||||||
This command form loads the <filename>helloworld</filename>
|
the <filename>helloworld</filename> binary as well as the
|
||||||
binary as well as the debugging information:
|
debugging information:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ i586-poky-linux-gdb helloworld
|
$ arm-poky-linux-gnuabi-gdb helloworld
|
||||||
</literallayout>
|
</literallayout>
|
||||||
The commands in your <filename>.gdbinit</filename> execute
|
The commands in your <filename>.gdbinit</filename> execute
|
||||||
and the GDB prompt appears.
|
and the GDB prompt appears.
|
||||||
|
|
Loading…
Reference in New Issue