This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior()
- From: Daniel Jacobowitz <drow at false dot org>
- To: Albert Ho <alberth at intellambda dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 26 Feb 2004 22:24:47 -0500
- Subject: Re: gdb-6.0/gdb/gdbserver/target.c::set_desired_inferior()
- References: <403EB813.90408@intellambda.com>
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