This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] fix crasher on detach command


On Tuesday 08 June 2010 00:50:35, Michael Snyder wrote:
> >  you've said that the pid was left as 42000 (I assume you meant
> > inferior_ptid, but that find_inferior no longer finds that inferior.
> > Where is the current inferior getting it's pid cleared out?  Why
> > aren't we clearing inferior_ptid as well?
> 
> What do you mean by "the current inferior"?  I thought that was
> inferior_ptid (which is "magic_null_ptid", (42000, 1, -1).

The "struct inferior" that is returned by the inferior.c:current_inferior
function.  It usually goes one-in-one with inferior_ptid, except, when
the inferior isn't running, at which point there's no pid, so
inferior_ptid is 0,0,0 (null_ptid).

-- 
Pedro Alves


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