This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH] remote_detach() and inferior_pid
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [PATCH] remote_detach() and inferior_pid
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Fri, 18 Feb 2000 12:01:22 -0500 (EST)
- Cc: Elena Zannoni <ezannoni at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- References: <14505.29243.656290.516276@kwikemart.cygnus.com><bd7pynspv.fsf@rtl.cygnus.com><38ABADEC.F0320CCB@cygnus.com><14508.25526.45779.825197@kwikemart.cygnus.com><38AC8D94.12EC96B9@cygnus.com>
Andrew Cagney writes:
> Elena,
>
> Either this or the equivalent with the remote_mourn call is fine.
>
OK then, I've checked in this one:
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.42
diff -c -r1.42 ChangeLog
*** ChangeLog 2000/02/17 20:11:15 1.42
--- ChangeLog 2000/02/18 16:39:18
***************
*** 1,3 ****
--- 1,10 ----
+ 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
+
+ * remote.c (remote_async_detach): Use target_mourn_inferior(), to
+ make sure that all is cleaned up after we disconnect from the
+ target.
+ (remote_detach): Ditto.
+
2000-02-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
From Rodney Brown <RodneyBrown@pmsc.com>
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.4
diff -c -r1.4 remote.c
*** remote.c 2000/02/09 08:52:47 1.4
--- remote.c 2000/02/18 16:39:36
***************
*** 2114,2120 ****
strcpy (buf, "D");
remote_send (buf, PBUFSIZ);
! pop_target ();
if (from_tty)
puts_filtered ("Ending remote debugging.\n");
--- 2114,2120 ----
strcpy (buf, "D");
remote_send (buf, PBUFSIZ);
! target_mourn_inferior ();
if (from_tty)
puts_filtered ("Ending remote debugging.\n");
***************
*** 2139,2145 ****
if (target_is_async_p ())
SERIAL_ASYNC (remote_desc, NULL, 0);
! pop_target ();
if (from_tty)
puts_filtered ("Ending remote debugging.\n");
}
--- 2139,2145 ----
if (target_is_async_p ())
SERIAL_ASYNC (remote_desc, NULL, 0);
! target_mourn_inferior ();
if (from_tty)
puts_filtered ("Ending remote debugging.\n");
}