Content deleted Content added
m →External links: fixed typo in new category name |
m WP:CHECKWIKI error fixes + general fixes, References after punctuation per WP:REFPUNC and WP:PAIC using AWB (7510) |
||
Line 2:
{{compu-prog-stub|date=February 2010}}
'''gdbserver''' is a computer program that makes it possible 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>
== How It Works ==
# <code>gdbserver</code> is launched on the target system, with the arguments:
#* The path and filename of the executable to be debugged, and
#* A port number (TCP or UDP).
#:It then listens for connections on the port.
# <code>gdb</code> is run on the host, with the arguments:
Line 36:
== Alternatives ==
Another technique for debugging programs remotely is to use a ''remote stub''.<ref>[http://davis.lbl.gov/Manuals/GDB/gdb_17.html#SEC140 Debugging with GDB]</ref>
In this case, the program to be debugged is linked with a few special-purpose subroutines that implement the GDB remote serial protocol. The file containing these subroutines is called a debugging stub.
|