tech_log: qemu-arm/arm-linux-gnu-gdb Remote Debugging

Saturday, March 21, 2009

qemu-arm/arm-linux-gnu-gdb Remote Debugging

1) start QEMU:
drasko@Marx:~/arm$ qemu-arm -L /usr/arm-linux-gnu/ -g 1234 hello

2) QEMU is now started and hangs on waiting on coming connetction from the remote GDB on port 1234

3) Open new terminal and start GDB:
drasko@Marx:~/arm$ arm-linux-gnu-gdbtui

4) In  GDB:(gdb) file hello
Reading symbols from /home/drasko/arm/hello...done.
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
[New Thread 1]
0x40081860 in ?? () from /usr/arm-linux-gnu/lib/ld-linux.so.2
(gdb) b main
Breakpoint 1 at 0x84f4: file hello.c, line 23.
(gdb) c
Continuing.

Breakpoint 1, main () at hello.c:23
(gdb)





0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home