Wednesday, December 25, 2013

GDB Server 使用方式

假設於ARM platform中要debug madplay程式

TARGET(192.168.1.10):
gdbserver HOST:PORT AP_NAME AP_PARAMETER
gdberver 192.168.1.11:1234 /usr/bin/madplay /tmp/aa.mp3
HOST(192.168.1.11):
ddd --debugger arm-linux-gdb /nfs/armroot/usr/bin/madplay
(gdb) target remote 192.168.1.10:1234
(gdb) break main

Breakpoint 1 at 0x12958: file madplay.c, line 742.
(gdb) c

Breakpoint 1, main (argc=2, argv=0xef9f4d84) at madplay.c:742
(gdb)

No comments:

Post a Comment