Module Name: src Committed By: christos Date: Thu Jul 2 14:54:42 UTC 2015
Modified Files: src/external/gpl3/gdb/dist/gdb: nbsd-thread.c Log Message: 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.22 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.22 --- src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.21 Wed Jul 16 07:48:37 2014 +++ src/external/gpl3/gdb/dist/gdb/nbsd-thread.c Thu Jul 2 10:54:42 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. */