aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-09-11 00:13:58 +0000
committerMichael Snyder <msnyder@vmware.com>2002-09-11 00:13:58 +0000
commit1a303dec0c9df64818f547dd5ef07701ee499e4f (patch)
tree4da3fe8d085a26b3fe74f68bbb0f0e677b8a1b10 /gdb
parent470903d0b01d9a4836c3243e753e652c7fb8a6fe (diff)
downloadgdb-1a303dec0c9df64818f547dd5ef07701ee499e4f.zip
gdb-1a303dec0c9df64818f547dd5ef07701ee499e4f.tar.gz
gdb-1a303dec0c9df64818f547dd5ef07701ee499e4f.tar.bz2
2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
* procfs.c (do_detach): Clear current signal, not just fault. Corrects problem with breakpoint trap signal leaking to detached process on Tru64.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/procfs.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c69cf21..82d66af 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
+
+ * procfs.c (do_detach): Clear current signal, not just fault.
+ Corrects problem with breakpoint trap signal leaking to detached
+ process on Tru64.
+
2002-09-10 Michael Snyder <msnyder@redhat.com>
* buildsym.c (finish_block): Protect against null pointer.
diff --git a/gdb/procfs.c b/gdb/procfs.c
index ff8a7d3..fe59876 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -3627,6 +3627,9 @@ do_detach (int signo)
if (!proc_clear_current_fault (pi))
proc_warn (pi, "do_detach, clear_current_fault", __LINE__);
+ if (signo == 0 && !proc_clear_current_signal (pi))
+ proc_warn (pi, "do_detach, clear_current_signal", __LINE__);
+
if (!proc_set_run_on_last_close (pi))
proc_warn (pi, "do_detach, set_rlc", __LINE__);
}