This is the mail archive of the gdb@sourceware.cygnus.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]

Re: [PATCH] remote_detach() and inferior_pid


Jim Kingdon wrote:
> 
> > This happens because remote_detach() (and remote_async_detach()) do
> > not reset inferior_pid to 0. Is there a reason for this being this
> > way?
> 
> Setting inferior_pid to 0 sounds good.  I'm not completely sure why
> the *_detach functions don't just call generic_mourn_inferior.

Would that kill the target?  Dig dig dig.  Nope!

Yes, generic_mourn_inferior looks to be doing the correct thing - namely
pulling breakpoints and the like.

	Andrew

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