[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] Re: Can't build both cross-gdb and gdb-server for target?

From: Grant Edwards
Subject: [Ltib] Re: Can't build both cross-gdb and gdb-server for target?
Date: Fri, 19 Jun 2009 13:09:07 -0500
User-agent: Mutt/1.5.19hg (2009-01-14)

On Fri, Jun 19, 2009 at 10:31:50AM -0500, Grant Edwards wrote:

> I'm trying to build a gdb server for the target and a cross
> gdb for the development host (so I have something to use with
> the gdb-server).  But LTIB won't let me build both a host
> cross-gdb and a target gdb-server.  Since neither is useful
> without the other, why can't I build both?
> What am I supposed to do with gdb-server if I don't have a
> corresponding cross-gdb for the development host?  Likewise,
> what am I supposed to do with a cross-gdb if the target has no
> gdb-server?

I guess you just have to build once with the host cross-gdb
selected and then a second time with target gdb-server
selected.  That doesn't really make sense to me. I don't see
why they can't be built at the same time -- they should be
separate packages, not different "versions" of a single

Now that I've gotten both of them built, I can't seem to get
them to work when debugging a multi-threaded applications.  I
can "next" through main() as it starts up the threads, but
after that, gdb has no clue what's going on. Gdb only shows 1
thread, and when I stop the program, gdb seems clueless about
what is running.  All it displays is "0xNNNNNNNN in ()?".

When I debug the exact same program on IA32, gdb knows about
all of the threads, and it can switch to and display
information about each of the threads.

Is thread debugging not supported on PPC?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]