From d57e0d5022e0d3409f68bb02fd27311d8d0327ea Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 15 Sep 2015 17:38:05 +0100 Subject: [PATCH] gdbserver: Fix exec stop reply reporting conditions gdb/gdbserver/ChangeLog: 2015-09-15 Pedro Alves * remote-utils.c (prepare_resume_reply) : Check whether to report exec events instead of checking whether multiprocess is enabled. --- gdb/gdbserver/ChangeLog | 6 ++++++ gdb/gdbserver/remote-utils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 6d6097f272d..5c0cbce18fd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2015-09-15 Pedro Alves + + * remote-utils.c (prepare_resume_reply) : + Check whether to report exec events instead of checking whether + multiprocess is enabled. + 2015-09-15 Pedro Alves PR remote/18965 diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 78fbfac9fe9..7cf66cc7d98 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"; -- 2.30.2