gdbserver: Fix exec stop reply reporting conditions
authorPedro Alves <palves@redhat.com>
Tue, 15 Sep 2015 16:38:05 +0000 (17:38 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 15 Sep 2015 16:38:07 +0000 (17:38 +0100)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c

index 6d6097f272dcccf37d8d44276d5176162677125a..5c0cbce18fd65570007b16cf476a5554c1fc3902 100644 (file)
@@ -1,3 +1,9 @@
+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
index 78fbfac9fe9a3ec935e209e5a8e8dcfcdbade25a..7cf66cc7d981fe7b83351a19dfbe0211b20ef545 100644 (file)
@@ -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";
This page took 0.032811 seconds and 4 git commands to generate.