<s>
gdbserver	B-Application
is	O
a	O
computer	O
program	O
that	O
makes	O
it	O
possible	O
to	O
remotely	O
debug	O
other	O
programs	O
.	O
</s>
<s>
Running	O
on	O
the	O
same	O
system	O
as	O
the	O
program	O
to	O
be	O
debugged	O
,	O
it	O
allows	O
the	O
GNU	B-Language
Debugger	I-Language
to	O
connect	O
from	O
another	O
system	O
;	O
that	O
is	O
,	O
only	O
the	O
executable	O
to	O
be	O
debugged	O
needs	O
to	O
be	O
resident	O
on	O
the	O
target	O
system	O
(	O
"	O
target	O
"	O
)	O
,	O
while	O
the	O
source	O
code	O
and	O
a	O
copy	O
of	O
the	O
binary	O
file	O
to	O
be	O
debugged	O
reside	O
on	O
the	O
developer	O
's	O
local	O
computer	O
(	O
"	O
host	O
"	O
)	O
.	O
</s>
<s>
gdbserver	B-Application
is	O
launched	O
on	O
the	O
target	O
system	O
,	O
with	O
the	O
arguments	O
:	O
</s>
<s>
It	O
then	O
waits	O
passively	O
for	O
the	O
host	O
gdb	B-Language
to	O
communicate	O
with	O
it	O
.	O
</s>
<s>
gdb	B-Language
is	O
run	O
on	O
the	O
host	O
,	O
with	O
the	O
arguments	O
:	O
</s>
<s>
Example	O
for	O
debugging	O
a	O
program	O
called	O
hello_world	O
on	O
a	O
remote	O
target	O
using	O
TCP	O
(	O
"	O
2159	O
"	O
is	O
the	O
registered	O
TCP	O
port	O
number	O
for	O
remote	O
GDB	B-Language
)	O
:	O
</s>
<s>
In	O
this	O
case	O
,	O
the	O
program	O
to	O
be	O
debugged	O
is	O
linked	O
with	O
a	O
few	O
special-purpose	O
subroutines	O
that	O
implement	O
the	O
GDB	B-Language
remote	O
serial	O
protocol	O
.	O
</s>
