* [Buildroot] How to get gdb in the image
@ 2010-08-20 14:48 JNY
2010-08-20 15:14 ` Will Moore
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: JNY @ 2010-08-20 14:48 UTC (permalink / raw)
To: buildroot
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
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread* [Buildroot] How to get gdb in the image
2010-08-20 14:48 [Buildroot] How to get gdb in the image JNY
@ 2010-08-20 15:14 ` Will Moore
2010-08-20 15:49 ` JNY
2010-08-20 17:12 ` Thomas Petazzoni
2 siblings, 0 replies; 7+ messages in thread
From: Will Moore @ 2010-08-20 15:14 UTC (permalink / raw)
To: buildroot
> -----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,
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] How to get gdb in the image
2010-08-20 14:48 [Buildroot] How to get gdb in the image JNY
2010-08-20 15:14 ` Will Moore
@ 2010-08-20 15:49 ` JNY
2010-08-20 17:12 ` Thomas Petazzoni
2 siblings, 0 replies; 7+ messages in thread
From: JNY @ 2010-08-20 15:49 UTC (permalink / raw)
To: 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.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] How to get gdb in the image
2010-08-20 14:48 [Buildroot] How to get gdb in the image JNY
2010-08-20 15:14 ` Will Moore
2010-08-20 15:49 ` JNY
@ 2010-08-20 17:12 ` Thomas Petazzoni
2010-08-21 8:21 ` JNY
2 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2010-08-20 17:12 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 20 Aug 2010 07:48:13 -0700 (PDT)
JNY <jny0@hotmail.com> wrote:
> 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.
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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] How to get gdb in the image
2010-08-20 17:12 ` Thomas Petazzoni
@ 2010-08-21 8:21 ` JNY
2010-08-21 11:17 ` Thomas Petazzoni
2010-08-21 12:18 ` JNY
0 siblings, 2 replies; 7+ messages in thread
From: JNY @ 2010-08-21 8:21 UTC (permalink / raw)
To: buildroot
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-stat
memcmp-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
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread* [Buildroot] How to get gdb in the image
2010-08-21 8:21 ` JNY
@ 2010-08-21 11:17 ` Thomas Petazzoni
2010-08-21 12:18 ` JNY
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2010-08-21 11:17 UTC (permalink / raw)
To: buildroot
On Sat, 21 Aug 2010 01:21:29 -0700 (PDT)
JNY <jny0@hotmail.com> 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
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] How to get gdb in the image
2010-08-21 8:21 ` JNY
2010-08-21 11:17 ` Thomas Petazzoni
@ 2010-08-21 12:18 ` JNY
1 sibling, 0 replies; 7+ messages in thread
From: JNY @ 2010-08-21 12:18 UTC (permalink / raw)
To: buildroot
> 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".
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-08-21 12:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-20 14:48 [Buildroot] How to get gdb in the image JNY
2010-08-20 15:14 ` Will Moore
2010-08-20 15:49 ` JNY
2010-08-20 17:12 ` Thomas Petazzoni
2010-08-21 8:21 ` JNY
2010-08-21 11:17 ` Thomas Petazzoni
2010-08-21 12:18 ` JNY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox