* powerpc gdb and gdbserver
@ 2003-12-17 17:50 Christopher R. Johnson
2003-12-18 17:10 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Christopher R. Johnson @ 2003-12-17 17:50 UTC (permalink / raw)
To: linuxppc-dev
I'm about to go and grab gdb to build a host-based debugger and
target-based (PPC 405GP) gdbserver. Anybody out there with advice on
how to do this? Should it just work out of the box or is there stuff I
need to do to gdbserver for this platform? The sources I just found are
gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
Thanks!
--
Christopher R. Johnson
Principal Software Engineer
GCC Printers
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-17 17:50 powerpc gdb and gdbserver Christopher R. Johnson
@ 2003-12-18 17:10 ` Daniel Jacobowitz
2003-12-18 20:27 ` Christopher R. Johnson
2003-12-19 9:37 ` Marius Groeger
0 siblings, 2 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-12-18 17:10 UTC (permalink / raw)
To: Christopher R. Johnson; +Cc: linuxppc-dev
On Wed, Dec 17, 2003 at 12:50:51PM -0500, Christopher R. Johnson wrote:
>
> I'm about to go and grab gdb to build a host-based debugger and
> target-based (PPC 405GP) gdbserver. Anybody out there with advice on
> how to do this? Should it just work out of the box or is there stuff I
> need to do to gdbserver for this platform? The sources I just found are
> gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
> binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
>
> Thanks!
It should simply build and work. You build GDB by setting a --target
and gdbserver by setting a --host. If you don't want to build a native
GDB at the same time, run the --host build by gdbserver/configure
instead of the top-level src/configure.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 17:10 ` Daniel Jacobowitz
@ 2003-12-18 20:27 ` Christopher R. Johnson
2003-12-18 20:35 ` Daniel Jacobowitz
2003-12-19 9:37 ` Marius Groeger
1 sibling, 1 reply; 10+ messages in thread
From: Christopher R. Johnson @ 2003-12-18 20:27 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linuxppc-dev
Ok that worked pretty well, except that gdbserver wants a library called
libthread_db.so on the target. From what little I can find this looks
like something I should build from the glibc mess. Does anyone know
what options I need to add to the glibc build in order to create this
library?
Thanks!
Daniel Jacobowitz wrote:
>On Wed, Dec 17, 2003 at 12:50:51PM -0500, Christopher R. Johnson wrote:
>
>>I'm about to go and grab gdb to build a host-based debugger and
>>target-based (PPC 405GP) gdbserver. Anybody out there with advice on
>>how to do this? Should it just work out of the box or is there stuff I
>>need to do to gdbserver for this platform? The sources I just found are
>>gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
>>binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
>>
>>Thanks!
>>
>
>It should simply build and work. You build GDB by setting a --target
>and gdbserver by setting a --host. If you don't want to build a native
>GDB at the same time, run the --host build by gdbserver/configure
>instead of the top-level src/configure.
>
>--
>Daniel Jacobowitz
>MontaVista Software Debian GNU/Linux Developer
>
>
--
Christopher R. Johnson
Principal Software Engineer
GCC Printers
(781)276-8763
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 20:27 ` Christopher R. Johnson
@ 2003-12-18 20:35 ` Daniel Jacobowitz
2003-12-18 20:37 ` Christopher R. Johnson
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-12-18 20:35 UTC (permalink / raw)
To: Christopher R. Johnson; +Cc: linuxppc-dev
On Thu, Dec 18, 2003 at 03:27:26PM -0500, Christopher R. Johnson wrote:
> Ok that worked pretty well, except that gdbserver wants a library called
> libthread_db.so on the target. From what little I can find this looks
> like something I should build from the glibc mess. Does anyone know
> what options I need to add to the glibc build in order to create this
> library?
Just make a symlink to libthread_db.so.1.
>
> Thanks!
>
> Daniel Jacobowitz wrote:
>
> >On Wed, Dec 17, 2003 at 12:50:51PM -0500, Christopher R. Johnson wrote:
> >
> >>I'm about to go and grab gdb to build a host-based debugger and
> >>target-based (PPC 405GP) gdbserver. Anybody out there with advice on
> >>how to do this? Should it just work out of the box or is there stuff I
> >>need to do to gdbserver for this platform? The sources I just found are
> >>gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
> >>binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
> >>
> >>Thanks!
> >>
> >
> >It should simply build and work. You build GDB by setting a --target
> >and gdbserver by setting a --host. If you don't want to build a native
> >GDB at the same time, run the --host build by gdbserver/configure
> >instead of the top-level src/configure.
> >
> >--
> >Daniel Jacobowitz
> >MontaVista Software Debian GNU/Linux Developer
> >
> >
>
> --
> Christopher R. Johnson
> Principal Software Engineer
> GCC Printers
> (781)276-8763
>
>
>
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 20:35 ` Daniel Jacobowitz
@ 2003-12-18 20:37 ` Christopher R. Johnson
2003-12-19 20:35 ` Wolfgang Denk
2003-12-22 3:52 ` Daniel Jacobowitz
0 siblings, 2 replies; 10+ messages in thread
From: Christopher R. Johnson @ 2003-12-18 20:37 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linuxppc-dev
As I mentioned, the library doesn't exist. I need to build it, but I'm
not sure where it comes from (glibc I think) or how to get it built.
Its a target library, so I have to build it for ppc and deliver it to
my target box. That part I know how to do, its creating the library to
begin with that I don't know how to do.
Daniel Jacobowitz wrote:
>On Thu, Dec 18, 2003 at 03:27:26PM -0500, Christopher R. Johnson wrote:
>
>>Ok that worked pretty well, except that gdbserver wants a library called
>>libthread_db.so on the target. From what little I can find this looks
>>like something I should build from the glibc mess. Does anyone know
>>what options I need to add to the glibc build in order to create this
>>library?
>>
>
>Just make a symlink to libthread_db.so.1.
>
>>Thanks!
>>
>>Daniel Jacobowitz wrote:
>>
>>>On Wed, Dec 17, 2003 at 12:50:51PM -0500, Christopher R. Johnson wrote:
>>>
>>>>I'm about to go and grab gdb to build a host-based debugger and
>>>>target-based (PPC 405GP) gdbserver. Anybody out there with advice on
>>>>how to do this? Should it just work out of the box or is there stuff I
>>>>need to do to gdbserver for this platform? The sources I just found are
>>>>gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
>>>>binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
>>>>
>>>>Thanks!
>>>>
>>>It should simply build and work. You build GDB by setting a --target
>>>and gdbserver by setting a --host. If you don't want to build a native
>>>GDB at the same time, run the --host build by gdbserver/configure
>>>instead of the top-level src/configure.
>>>
>>>--
>>>Daniel Jacobowitz
>>>MontaVista Software Debian GNU/Linux Developer
>>>
>>>
>>--
>>Christopher R. Johnson
>>Principal Software Engineer
>>GCC Printers
>>(781)276-8763
>>
>>
>>
>>
>
--
Christopher R. Johnson
Principal Software Engineer
GCC Printers
(781)276-8763
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 17:10 ` Daniel Jacobowitz
2003-12-18 20:27 ` Christopher R. Johnson
@ 2003-12-19 9:37 ` Marius Groeger
2003-12-22 3:52 ` Daniel Jacobowitz
1 sibling, 1 reply; 10+ messages in thread
From: Marius Groeger @ 2003-12-19 9:37 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Christopher R. Johnson, linuxppc-dev
On Thu, 18 Dec 2003, Daniel Jacobowitz wrote:
> On Wed, Dec 17, 2003 at 12:50:51PM -0500, Christopher R. Johnson wrote:
> >
> > I'm about to go and grab gdb to build a host-based debugger and
> > target-based (PPC 405GP) gdbserver. Anybody out there with advice on
> > how to do this? Should it just work out of the box or is there stuff I
> > need to do to gdbserver for this platform? The sources I just found are
> > gdb-6.0, and I'm using quite recent tools (gcc 3.3.2 glibc 2.3.2
> > binutils 2.14.90.0.5 - kudos to Dan Kegle for the crosstools stuff!!!).
> >
> > Thanks!
>
> It should simply build and work. You build GDB by setting a --target
> and gdbserver by setting a --host. If you don't want to build a native
> GDB at the same time, run the --host build by gdbserver/configure
> instead of the top-level src/configure.
Yes, I can confirm that. I just tried single and multi threaded debugging
with gdb 6.0 release on a PPC405 target. I used a cross gdb with gdbserver
and a native gdb. Only the native gdb (ie. the one running on the target)
had problems with threads. Any idea about that?
Also, the official GDB site at http://www.gnu.org/software/gdb tells about
some known issues with the 6.0 release. One is that the PPC targets had not
yet implemented "the new frame format". I'm a little bit puzzled about that.
Does anyone know what this is about?
I'm using gcc 2.95.3 and glibc 2.2.5 at the moment.
Regards,
Marius
--
Marius Groeger <mgroeger@sysgo.com>
Project Manager
SYSGO Real-Time Solutions AG | Embedded and Real-Time Software
Am Pfaffenstein 14
55270 Klein-Winternheim, Germany
Voice: +49-6136-9948-0 | FAX: +49-6136-9948-10
www.sysgo.com | www.elinos.com | www.osek.de
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 20:37 ` Christopher R. Johnson
@ 2003-12-19 20:35 ` Wolfgang Denk
2003-12-22 3:52 ` Daniel Jacobowitz
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2003-12-19 20:35 UTC (permalink / raw)
To: cjohnson; +Cc: Daniel Jacobowitz, linuxppc-dev
In message <3FE2101D.6000005@gcctech.com> you wrote:
>
> As I mentioned, the library doesn't exist. I need to build it, but I'm
> not sure where it comes from (glibc I think) or how to get it built.
You can also just download the ELDK and use the ready-to-run tools
(which include some extra fixes and extensions).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Life would be so much easier if we could just look at the source
code. -- Dave Olson
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-18 20:37 ` Christopher R. Johnson
2003-12-19 20:35 ` Wolfgang Denk
@ 2003-12-22 3:52 ` Daniel Jacobowitz
2003-12-22 15:32 ` Christopher R. Johnson
1 sibling, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-12-22 3:52 UTC (permalink / raw)
To: Christopher R. Johnson; +Cc: linuxppc-dev
On Thu, Dec 18, 2003 at 03:37:49PM -0500, Christopher R. Johnson wrote:
> As I mentioned, the library doesn't exist. I need to build it, but I'm
> not sure where it comes from (glibc I think) or how to get it built.
> Its a target library, so I have to build it for ppc and deliver it to
> my target box. That part I know how to do, its creating the library to
> begin with that I don't know how to do.
Wherever you got glibc from you should have gotten libthread_db.so.1
also; maybe it just wasn't installed?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-19 9:37 ` Marius Groeger
@ 2003-12-22 3:52 ` Daniel Jacobowitz
0 siblings, 0 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2003-12-22 3:52 UTC (permalink / raw)
To: Marius Groeger; +Cc: Christopher R. Johnson, linuxppc-dev
On Fri, Dec 19, 2003 at 10:37:23AM +0100, Marius Groeger wrote:
> Also, the official GDB site at http://www.gnu.org/software/gdb tells about
> some known issues with the 6.0 release. One is that the PPC targets had not
> yet implemented "the new frame format". I'm a little bit puzzled about that.
> Does anyone know what this is about?
It's not a big deal. It's an internal GDB architecture change that
would improve the reliability of backtraces, and other related
features.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: powerpc gdb and gdbserver
2003-12-22 3:52 ` Daniel Jacobowitz
@ 2003-12-22 15:32 ` Christopher R. Johnson
0 siblings, 0 replies; 10+ messages in thread
From: Christopher R. Johnson @ 2003-12-22 15:32 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linuxppc-dev
Good news. All I needed to do was setup Kegel's crosstool.sh by adding
the following to my powerpc-405.dat file:
GLIBC_EXTRA_CONFIG="--without-fp"
to
GLIBC_EXTRA_CONFIG="--without-fp --enable-add-ons=linuxthreads_db"
And used crosstool to rebuild the tool chain. That resulted in the
library gdbserver needed to run. I need some instruction from Dan on
how to rebuild just a component, after this type of config change, so I
don't go through the 2 hour crosstool run.
Daniel Jacobowitz wrote:
>On Thu, Dec 18, 2003 at 03:37:49PM -0500, Christopher R. Johnson wrote:
>
>>As I mentioned, the library doesn't exist. I need to build it, but I'm
>>not sure where it comes from (glibc I think) or how to get it built.
>>Its a target library, so I have to build it for ppc and deliver it to
>>my target box. That part I know how to do, its creating the library to
>>begin with that I don't know how to do.
>>
>
>Wherever you got glibc from you should have gotten libthread_db.so.1
>also; maybe it just wasn't installed?
>
--
Christopher R. Johnson
Principal Software Engineer
GCC Printers
(781)276-8763
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-12-22 15:32 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-17 17:50 powerpc gdb and gdbserver Christopher R. Johnson
2003-12-18 17:10 ` Daniel Jacobowitz
2003-12-18 20:27 ` Christopher R. Johnson
2003-12-18 20:35 ` Daniel Jacobowitz
2003-12-18 20:37 ` Christopher R. Johnson
2003-12-19 20:35 ` Wolfgang Denk
2003-12-22 3:52 ` Daniel Jacobowitz
2003-12-22 15:32 ` Christopher R. Johnson
2003-12-19 9:37 ` Marius Groeger
2003-12-22 3:52 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).