#arm-linux-gdbtui hello //简易图形界面调试环境
简易图形界面:用起来还是比较方便的,呵呵
(gdb) c不要输入r,输入c,因为target端的hello在载入时处于了run状态.
Continuing.
Breakpoint 1, main (argc=1,argv=0xbeb4ad84) at hello.c:6
6 for(i = 0;i < 10;i++)
(gdb) n
8 printf("%d\n", i);
(gdb) n
6 for(i = 0;i < 10;i++)
(gdb) n
8 printf("%d\n",i);
(gdb)
<2> target板端log信息
====================================================================================
/ # ./gdbserver 192.168.100.1:2345 hello
[ 3688.476398] init: untracked pid 1513 exited
Process hello created; pid = 1514
Listening on port 2345
Remote debugging from host 192.168.100.1
====================================================================================