Module Name:    src
Committed By:   snj
Date:           Thu Jul 16 21:53:57 UTC 2015

Modified Files:
        src/external/gpl3/gdb/dist/gdb [netbsd-7]: nbsd-thread.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #867):
        external/gpl3/gdb/dist/gdb/nbsd-thread.c: revision 1.22
td_close() needs to be able to write to the process image, so call sooner,
before we detach from it.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.2.1 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/nbsd-thread.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.21 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.21.2.1
--- src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.21	Wed Jul 16 11:48:37 2014
+++ src/external/gpl3/gdb/dist/gdb/nbsd-thread.c	Thu Jul 16 21:53:57 2015
@@ -146,8 +146,6 @@ nbsd_thread_activate (void)
 static void
 nbsd_thread_deactivate (void)
 {
-  td_close (main_ta);
-
   inferior_ptid = main_ptid;
   main_ptid = minus_one_ptid;
   cached_thread = main_ptid;
@@ -197,6 +195,7 @@ nbsd_thread_detach (struct target_ops *o
 {
   struct target_ops *beneath = find_target_beneath (ops);
   unpush_target (ops);
+  td_close (main_ta);
   /* Ordinarily, gdb caches solib information, but this means that it
      won't call the new_obfile hook on a reattach. Clear the symbol file
      cache so that attach -> detach -> attach works. */

Reply via email to