How to get gdb in the image
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.
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,
JNY
Signature · 2 lines
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.
Quoted 7 lines
-----Original Message-----
From: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] On Behalf Of JNY
Sent: 20 August 2010 15:48Hi,
Quoted 7 lines
I need gdb on my target, so selected the gdb options available to me in buildroot (
Toolchain->Buildgdb degugger for the target,Toolchain->Buildgdb server for the target,Toolchain->Buildgdb for the host, Toolchain-Quoted 1 line
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.
Quoted 15 lines
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,
JNY
--
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
Hi,
Thanks for the response.
The following
(http://buildroot.uclibc.org/downloads/buildroot.html#rebuilding_packages)
seems to give advice on how to remove packeges. As neither gdb nor gdbserver were not on the origial build, I need help with adding these missing packages, rather than removing them.
Signature · 2 lines
View this message in context: http://old.nabble.com/How-to-get-gdb-in-the-image-tp29492552p29493157.html Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
Hello,
Quoted 6 lines · On Fri, 20 Aug 2010 07:48:13 -0700 (PDT) JNY <[email protected]> wrote:
I need gdb on my target, so selected the gdb options available to me in buildroot (
Toolchain->Buildgdb degugger for the target,Toolchain->Buildgdb server for the target,Toolchain->Buildgdb for the host,Toolchain->GDBDebugger Version 6.8). I then re-made, and installed the output image, but still gdb is not recognised on the target after installation.
You need to enable:
Toolchain -> Build gdb server for the target
Toolchain -> Build gdb for the host
Then, remove everything (make clean), and rebuild everything (make).
Basically, any change in the Toolchain submenu requires a complete rebuild.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Hi,
Since adding gdb to the menuconfig, buildroot no longer makes. I get the following errors and warnings:
getgroups.c: In function 'main':
getgroups.c:56: warning: attempt to free a non-heap object 'groups'
TEST_LINK pwd_grp/ grcat
TEST_LINK pwd_grp/ pwcat
TEST_LINK pwd_grp/ test_grp
TEST_LINK pthread/ ex1
TEST_LINK pwd_grp/ test_pwd
TEST_LINK pthread/ ex2
TEST_LINK pthread/ ex3
TEST_LINK pthread/ ex4
TEST_LINK pthread/ ex5
TEST_LINK pthread/ ex6
TEST_LINK pthread/ ex7
TEST_LINK pthread/ tst-too-many-cleanups
TEST_LINK regex/ testregex
TEST_LINK rpc/ getrpcent
TEST_LINK regex/ testregexc
TEST_LINK setjmp/ bug269-setjmp
TEST_LINK regex/ testregexf
TEST_LINK setjmp/ jmpbug
TEST_LINK setjmp/ sigjmpbug
TEST_LINK setjmp/ tst-setjmp
TEST_LINK setjmp/ tst-vfork-longjmp
TEST_LINK signal/ sigchld
TEST_LINK regex/ testregexi
TEST_LINK signal/ signal
TEST_LINK signal/ tst-raise
TEST_LINK signal/ tst-signal
TEST_LINK signal/ tst-sigset
TEST_LINK silly/ hello
TEST_LINK regex/ testregexl
TEST_LINK silly/ tiny
TEST_LINK stat/ memcmp-statmemcmp-stat.c: In function 'show_stat':
memcmp-stat.c:60: error: 'struct stat' has no member named 'st_atimensec' memcmp-stat.c:62: error: 'struct stat' has no member named 'st_mtimensec' memcmp-stat.c:64: error: 'struct stat' has no member named 'st_ctimensec' make[2]: *** [memcmp-stat] Error 1
make[1]: *** [_dircompile_stat] Error 2
make[1]: *** Waiting for unfinished jobs....
TEST_LINK regex/ testregexn
TEST_LINK regex/ testregexp
TEST_LINK regex/ testregexr
TEST_LINK regex/ tst-regex2
In file included from /home/JB/Apps/Buildroot2/buildroot-2010.02/output/staging/usr/include/bits/sigcontext.h:31,
from/home/JB/Apps/Buildroot2/buildroot-2010.02/output/staging/usr/include/signal.h:333,
from ../test-skeleton.c:25,
from tst-regex2.c:244:/home/JB/Apps/Buildroot2/buildroot-2010.02/output/staging/usr/include/asm/sigcontext.h:96:
warning: declaration does not declare anything
TEST_LINK regex/ tst-regexloc
make[1]: Leaving directory `/home/JB/Apps/Buildroot2/buildroot-2010.02/output/toolchain/uClibc-0.9.30.2/test'
make: *** [/home/JB/Apps/Buildroot2/buildroot-2010.02/output/toolchain/uClibc-0.9.30.2/test/unistd/errno] Error 2
Cheers,
JNY
Signature · 2 lines
View this message in context: http://old.nabble.com/How-to-get-gdb-in-the-image-tp29492552p29497355.html Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
Quoted 2 lines · On Sat, 21 Aug 2010 01:21:29 -0700 (PDT) JNY <[email protected]> wrote:
Since adding gdb to the menuconfig, buildroot no longer makes. I get the following errors and warnings:
Are you sure you have added *only* gdb ? The error message you're showing seems to come from the uClibc test suite. I think you have mistakenly enabled BR2_UCLIBC_INSTALL_TEST_SUITE in addition to enabling gdb.
Regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 2 lines
Since adding gdb to the menuconfig, buildroot no longer makes. I get the
following errors and warnings:
Hi,
I managed to get around the previous error by removing the linux config, and using the default settings. The toolchain still seems to work (so I assume the linux config was probably default anyway), but still having problems with gdb however. A gdbserver directory has appeared in the output->build directory, which I copoed to the target, but when I run it, I'm told "Permissions Denied".
Signature · 2 lines
View this message in context: http://old.nabble.com/How-to-get-gdb-in-the-image-tp29492552p29497556.html Sent from the Buildroot (busybox) mailing list archive at Nabble.com.