aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
-rw-r--r--gdb/linux-nat.c4
4 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7b5bb6c..13d0611 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2013-03-22 Pedro Alves <palves@redhat.com>
+ * linux-nat.c (linux_child_follow_fork): Don't call
+ linux_enable_event_reporting.
+ (linux_handle_extended_wait): Don't call
+ linux_enable_event_reporting.
+
+2013-03-22 Pedro Alves <palves@redhat.com>
+
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
use it to rewrite the trampoline buffers with type gdb_byte[], and
undefine the macro. Remove char* cast.
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 18355b4..b1f5f0f 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-22 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (handle_extended_wait): Don't call
+ linux_enable_event_reporting.
+
2013-03-15 Tony Theodore <tonyt@logyst.com>
PR build/9098:
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 523926d..72c51e0 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -468,8 +468,6 @@ handle_extended_wait (struct lwp_info *event_child, int wstat)
warning ("wait returned unexpected status 0x%x", status);
}
- linux_enable_event_reporting (new_pid);
-
ptid = ptid_build (pid_of (event_child), new_pid, 0);
new_lwp = (struct lwp_info *) add_lwp (ptid);
add_thread (ptid, new_lwp);
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 3cbd126..5631e9e 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -643,9 +643,6 @@ linux_child_follow_fork (struct target_ops *ops, int follow_child)
parent_pid = ptid_get_pid (inferior_ptid);
child_pid = PIDGET (inferior_thread ()->pending_follow.value.related_pid);
- if (!detach_fork)
- linux_enable_event_reporting (pid_to_ptid (child_pid));
-
if (has_vforked
&& !non_stop /* Non-stop always resumes both branches. */
&& (!target_is_async_p () || sync_execution)
@@ -2316,7 +2313,6 @@ linux_handle_extended_wait (struct lwp_info *lp, int status,
this fork. We're actually doing an infcall in
linux-fork.c. */
ourstatus->kind = TARGET_WAITKIND_SPURIOUS;
- linux_enable_event_reporting (pid_to_ptid (new_pid));
/* Report the stop to the core. */
return 0;