Content deleted Content added
m →Alternatives: Text improvement; same information |
Ravi Pokala (talk | contribs) Use the TCP port number that is registered with IANA for remote GDB (2159) rather than a placeholder (2345) |
||
Line 11:
#* A device name (for a serial line) or the IP address and port number needed for connection to the target system.
Example for debugging a program called <code>hello_world</code> on a remote target using TCP ("
<source lang="bash">
remote@~$ gdbserver :
Process hello_world created; pid = 2509
Listening on port
</source>
Line 21:
local@~$ gdb -q hello_world
Reading symbols from /home/user/hello_world...done.
(gdb) target remote 192.168.0.11:
Remote debugging using 192.168.0.11:
0x002f3850 in ?? () from /lib/ld-linux.so.2
(gdb) continue
|