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


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");
  }


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