Gdbserver: Difference between revisions

Content deleted Content added
this is non-non-notable, and now less written like a how to
m +stub notice, +reference, -no-references notice
Line 1:
{{Unreferencedcompu-prog-stub|date=February 2010}}
 
{{orphan|date=February 2010}}
 
'''gdbserver''' is a computer program that allows to remotely [[Debugging|debug]] other programs<ref>[http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_node/gdb_130.html GDB Manual]</ref>. It runs in the system with the program to be debugged and allows the [[GNU Debugger]] to connect from a different system.
{{Unreferenced|date=February 2010}}
'''gdbserver''' is a computer program that allows to remotely [[Debugging|debug]] other programs. It runs in the system with the program to be debugged and allows the [[GNU Debugger]] to connect from a different system.
 
It only needs the presence of the executable on the target, while the source code and a copy of the binary file stay in the computer used by the developer.
 
== How It Works ==
# <ttcode>gdbserver</ttcode> is launched on the target with the path and name of the executable to debug, and a port number (TCP or UDP). It listens for connections on the port.
# <ttcode>gdb</ttcode> is run on the host with the path and name of the executable (and the sources) on the host, and the IP address and port number to connect to the target.
 
Example for debugging a program in a remote host called <ttcode>hello_world</ttcode> ("2345" is the TCP port number):
<pre>
remote$ gdbserver :2345 hello_world