This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
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