Module Name: src Committed By: christos Date: Wed Jul 16 11:48:37 UTC 2014
Modified Files: src/external/gpl3/gdb/dist/gdb: nbsd-thread.c Log Message: PR/30756: Thomas Klausner: Deactivate threads after detaching the main thread. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 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.20 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.21 --- src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.20 Tue Jul 15 13:35:39 2014 +++ src/external/gpl3/gdb/dist/gdb/nbsd-thread.c Wed Jul 16 07:48:37 2014 @@ -196,7 +196,6 @@ static void nbsd_thread_detach (struct target_ops *ops, const char *args, int from_tty) { struct target_ops *beneath = find_target_beneath (ops); - nbsd_thread_deactivate (); unpush_target (ops); /* Ordinarily, gdb caches solib information, but this means that it won't call the new_obfile hook on a reattach. Clear the symbol file @@ -204,6 +203,7 @@ nbsd_thread_detach (struct target_ops *o clear_solib(); symbol_file_clear(0); beneath->to_detach (beneath, args, from_tty); + nbsd_thread_deactivate (); } static int nsusp;