Content deleted Content added
Ravi Pokala (talk | contribs) Use the TCP port number that is registered with IANA for remote GDB (2159) rather than a placeholder (2345) |
m →How it works: lang="c"<-"gdb" |
||
Line 12:
Example for debugging a program called <code>hello_world</code> on a remote target using TCP ("2159" is the [[List_of_TCP_and_UDP_port_numbers#Registered_ports|registered TCP port number for remote GDB]]):
<pre>
remote@~$ gdbserver :2159 hello_world
Process hello_world created; pid = 2509
Listening on port 2159
</
<source lang="
local@~$ gdb -q hello_world
Reading symbols from /home/user/hello_world...done.
|