[Buildroot] How to get gdb in the image

Will Moore will.moore at beraninstruments.com
Fri Aug 20 15:14:08 UTC 2010

> -----Original Message-----
> From: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net]
> On Behalf Of JNY
> Sent: 20 August 2010 15:48
> Hi,
> I need gdb on my target, so selected the gdb options available to me in
> buildroot (Toolchain->Build gdb degugger for the target, Toolchain->Build
> gdb server for the target, Toolchain->Build gdb for the host, Toolchain-
> >GDB
> Debugger Version 6.8).  I then re-made, and installed the output image,
> but
> still gdb is not recognised on the target after installation.

If you want to perform remote debug then you will need gdbserver on the
target and gdb on the host.  There is no need to build gdb for the target.

If you want to perform debug on the target then you will need gdb for the
target.  There is no need to build gdbserver for the target nor gdb for the
host, I assume, although I never do this as having dev tools on the target
seems a bit over the top to me.

This may just be an example of buildroot not rebuilding properly.  See
http://buildroot.uclibc.org/downloads/buildroot.html#rebuilding_packages for
more information on how to coax buildroot to rebuild a package.

> Any ideas would be received with thanks (and admiration - don't know if
> flattery will help, but I figure it's worth a shot ;-))
> Regards,
> --
> View this message in context: http://old.nabble.com/How-to-get-gdb-in-the-
> image-tp29492552p29492552.html
> Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

More information about the buildroot mailing list