arm cross 调试

3 down vote accepted

I recommend getting gdb from the Linaro toolchain rather than the Ubuntu repositories. Download gcc-linaro-arm-linux-gnueabihf-4.7-2012.10-20121022_linux.tar.bz2 from here and you'll find:

  • bin/arm-linux-gnueabihf-gdb
  • arm-linux-gnueabihf/debug-root/usr/bin/gdbserver

The latter is statically linked and of course built for ARM Linux.

Assuming you have networking already setup to your target board. Copy gdbserver to it, run:

$ gdbserver --multi :2345

On your development machine, run:

$ arm-linux-gnueabihf-gdb
(gdb) target extended BOARD-IP-ADDR:2345
(gdb) set remote exec-file /bin/true
(gdb) run

and you're up and running with remote cross debugging.

Links to the Linaro bug tracker, mailing list and web forum are in Linaro:Getting Involved. They're very active in ARM Linux toolchain, kernel, QEMU development development as you can see from their release notes.

 

是http://stackoverflow.com/questions/13269948/need-cross-gdb-for-device复制下来的

其中 gdbserver 是下载源文件, 交叉编译的

由于手上没有jlink, 就先这样玩着...

posted on 2013-08-07 12:23  kwingmei  阅读(424)  评论(0编辑  收藏  举报

导航