Content deleted Content added
m Reverted edits by 47.19.213.218 (talk) to last version by ClueBot NG |
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
||
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]]):
<
remote@~$ gdbserver :2159 hello_world
Process hello_world created; pid = 2509
Listening on port 2159
</syntaxhighlight>
<
local@~$ gdb -q hello_world
Reading symbols from /home/user/hello_world...done.
Line 31:
10 printf("x[%d] = %g\n", i, x[i]);
(gdb)
</syntaxhighlight>
== Alternatives ==
|