OpenWrt Forum Archive

Topic: Any way to run gdb on a WRT coredump?

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I know there must be a way, but this embedded stuff, and cross-compiling, are very new to me.

I have an application that I've ported, but it is crashing and dumping core on me, and I'd like to be able to do a backtrace to see where the problem is.

You can try to set up a "complete" environment via NFS. I mean for example the gentoo's embedded stage 3 that you can find here :

http://ftp.belnet.be/packages/gentoo/ex … 07.tar.bz2

Then, you can chroot /bin/sh to your new environment, but take into account the fact that the busybox binary needs some libs both on the wrt and the chrooted env to work fine. It worked fine for me, even if gbd is really slow then wink

The discussion might have continued from here.