Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb td_close() needs to be able to wr...



details:   https://anonhg.NetBSD.org/src/rev/18b6f0c15325
branches:  trunk
changeset: 339186:18b6f0c15325
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 02 14:54:42 2015 +0000

description:
td_close() needs to be able to write to the process image, so call sooner,
before we detach from it.

diffstat:

 external/gpl3/gdb/dist/gdb/nbsd-thread.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r b75c84413e3a -r 18b6f0c15325 external/gpl3/gdb/dist/gdb/nbsd-thread.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-thread.c  Thu Jul 02 09:53:12 2015 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-thread.c  Thu Jul 02 14:54:42 2015 +0000
@@ -146,8 +146,6 @@
 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 @@
 {
   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. */



Home | Main Index | Thread Index | Old Index