aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-09-15 17:38:05 +0100
committerPedro Alves <palves@redhat.com>2015-09-15 17:38:07 +0100
commitd57e0d5022e0d3409f68bb02fd27311d8d0327ea (patch)
tree8fc23ee307bd6032734b7396098621ccc6617b74
parent5a676acc4bba751c7746c4a200a054d6c557f3ee (diff)
downloadgdb-d57e0d5022e0d3409f68bb02fd27311d8d0327ea.zip
gdb-d57e0d5022e0d3409f68bb02fd27311d8d0327ea.tar.gz
gdb-d57e0d5022e0d3409f68bb02fd27311d8d0327ea.tar.bz2
gdbserver: Fix exec stop reply reporting conditions
gdb/gdbserver/ChangeLog: 2015-09-15 Pedro Alves <palves@redhat.com> * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>: Check whether to report exec events instead of checking whether multiprocess is enabled.
-rw-r--r--gdb/gdbserver/ChangeLog6
-rw-r--r--gdb/gdbserver/remote-utils.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 6d6097f..5c0cbce 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,11 @@
2015-09-15 Pedro Alves <palves@redhat.com>
+ * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
+ Check whether to report exec events instead of checking whether
+ multiprocess is enabled.
+
+2015-09-15 Pedro Alves <palves@redhat.com>
+
PR remote/18965
* remote-utils.c (prepare_resume_reply): Merge
TARGET_WAITKIND_VFORK_DONE switch case with the
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 78fbfac..7cf66cc 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -1142,7 +1142,7 @@ prepare_resume_reply (char *buf, ptid_t ptid,
sprintf (buf, "T%02xvforkdone:;", signal);
}
- else if (status->kind == TARGET_WAITKIND_EXECD && multi_process)
+ else if (status->kind == TARGET_WAITKIND_EXECD && report_exec_events)
{
enum gdb_signal signal = GDB_SIGNAL_TRAP;
const char *event = "exec";