This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior()


On Fri, Feb 27, 2004 at 12:03:17PM -0800, Albert Ho wrote:
> The first spawn thread died on startup under gdbserver. It has a pid of 
> 1024. System was just started and the main thread has pid 110.

Sorry, but that isn't enough information to make a guess at what your
problem is.  It sounds like your system has problems with debugging.

> 
> Daniel Jacobowitz wrote:
> 
> >On Thu, Feb 26, 2004 at 07:22:59PM -0800, Albert Ho wrote:
> > 
> >
> >>Should gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior() always 
> >>succeed when dealing with 's' in main?
> >>
> >>I run into a problem when a thread is not found in 
> >>set_desired_inferior(), causing &status to become some bogus addr and 
> >>hence gdbserve segv.
> >>   
> >>
> >
> >I've never seen this behavior before.  Please explain how it happens; I
> >don't see any way to get a bogus pointer unless your thread list is
> >corrupted.
> >
> > 
> >
> 
> 
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]