Gdb: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 27: | Line 27: | ||
|- | |- | ||
|info (i) [functions (fun), registers (r), sharedlibrary] | |info (i) [functions (fun), registers (r), sharedlibrary] | ||
| | |||
|- | |||
|list | |||
| | |||
|- | |||
|file | |||
| | | | ||
|} | |} | ||
Revision as of 22:58, 9 January 2019
gdb is a debugger.
| Command | Comment |
|---|---|
| target remote <target-ip>:<port> | |
| continue (c) | |
| stepi (si) | |
| step (s) | |
| nexti (ni) | |
| next (n) [count] | |
| disassemble (disas) [/r, /m] | |
| info (i) [functions (fun), registers (r), sharedlibrary] | |
| list | |
| file |
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>