Gdb

From Wiki :-)
Revision as of 19:12, 9 January 2019 by Savoundg (talk | contribs) (Created page with "gdb is a debugger. {| class="wikitable" !Command !Comment |- |target remote <target-ip>:<port> | |- |continue (c) | |- |stepi (si) | |- |step (s) | |- |nexti (ni) | |- |next...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

gdb is a debugger.

Command Comment
target remote <target-ip>:<port>
continue (c)
stepi (si)
step (s)
nexti (ni)
next (n) [count]

How to remote debug executable?

On the target

Run gdbserver as follow:

gdbserver --multi :<port> <program to debug>

On the host

Run gdb as follow:

(gdb) target remote  <target-ip>:<port>