Gdbserver: Difference between revisions

Content deleted Content added
Ptrb (talk | contribs)
m External links: fixed typo in new category name
Yobot (talk | contribs)
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>. Running on the same system as the program to be debugged, it allows the [[GNU Debugger]] to connect from another system; that is, only the executable{{Clarify|date=June 2010}} needs to be resident on the target system, while the source code{{Clarify|date=June 2010}} and a copy of the binary file{{Clarify|date=June 2010}} reside on the developer’s local computer.
 
== 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>.{{Clarify|date=February 2010}}
 
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.