OpenWrt Forum Archive

Topic: Setup a development environment for OpenWrt with the VMware Player

The content of this topic has been archived between 18 Aug 2016 and 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

as in opkg install gdbserver ? but i did compile it as part of core library and not as a package.

"Advanced configuration options (for developers) → Toolchain Options → Build gdb and gdbserver" sounds wrong then...

The target-package for gdbserver can be enabled in menuconfig → "Development"  → "<*> gdbserver"

hmm actually it is:

Advanced configuration options (for developers) → Toolchain Options → Build gdb

and

Utilities → gdbserver

There is no gdb in my menuconfig --> Development
-----------------------------------------------------------------

I tried compiling gdbserver as a packaged , but it does not show up in opkg either.
do i need to select some other menus in order to make gdbserver work ? infact did anyone actually managed to make it work following this: http://wiki.openwrt.org/doc/devel/gdb

Yes, I wrote the tutorial and I got it working fine as described, make sure to mark the gdbserver package as builtin (<*>).
For me gdbserver is not in Utils anymore but got moved into the Development menu, but that doesn't change the approach.

tesss

Is gdb quick-tutorial up to date?
I want to debug subversion and I followed these instructions:
http://wiki.openwrt.org/doc/devel/gdb

but when I execute

./scripts/remote-gdb 192.168.1.1:2345 ./build_dir/target-mipsel-linux-gnu/subversion-1.8.1/subversion/svnserve/svnserve

the output is:

Choose target:
Can't use an undefined value as an ARRAY reference at ./scripts/remote-gdb line 48.

I am not Perl user so perhaps someone can give me a hint (of course I will try to dig it myself)?
I use entware-toolchain.

Thanks and regards
Pawel

If this guide is still relevant, please delete all references to WhiteRussian, or make a new page which doesn't mention WhiteRussian, since it's confusing.

nescio wrote:

If this guide is still relevant, please delete all references to WhiteRussian, or make a new page which doesn't mention WhiteRussian, since it's confusing.

You must be referring to forum2006's postings, since http://wiki.openwrt.org/doc/devel/gdb doesn't contain any traces to White Russian.

forum2006 Last post: 2007-12-30

It is highly unlikely that he's still reading this forum.
Feel free to update his guide and post it here.

The discussion might have continued from here.