This is the mail archive of the gdb-patches@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


Elena,

Either this or the equivalent with the remote_mourn call is fine.

Elena Zannoni wrote:

> Index: remote.c
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/remote.c,v
> retrieving revision 1.269
> diff -c -r1.269 remote.c
> *** remote.c    2000/02/02 07:47:45     1.269
> --- remote.c    2000/02/17 21:06:46
> ***************
> *** 2124,2129 ****
> --- 2124,2130 ----
>     remote_send (buf, PBUFSIZ);
> 
>     pop_target ();
> +   generic_mourn_inferior ();
>     if (from_tty)
>       puts_filtered ("Ending remote debugging.\n");
> 
> ***************
> *** 2149,2154 ****
> --- 2150,2156 ----
>       SERIAL_ASYNC (remote_desc, NULL, 0);
> 
>     pop_target ();
> +   generic_mourn_inferior ();
>     if (from_tty)
>       puts_filtered ("Ending remote debugging.\n");
>   }

Andrew

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