summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-10-26 16:47:14 +0000
committerPedro Alves <palves@redhat.com>2012-10-26 16:47:14 +0000
commit6aca2afa90140848d729211db08491b1446d3e15 (patch)
tree402c60fd33dbf00033e91ba559bc3258708b1bd5 /gdb/infrun.c
parent074a3bb449e2f5c80fd669107cceeb35cbb14431 (diff)
downloadgdb-6aca2afa90140848d729211db08491b1446d3e15.tar.gz
2012-10-26 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 0caa1ac31ae..eb97c52b7b6 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3424,7 +3424,12 @@ handle_inferior_event (struct execution_control_state *ecs)
case TARGET_WAITKIND_FORKED:
case TARGET_WAITKIND_VFORKED:
if (debug_infrun)
- fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_FORKED\n");
+ {
+ if (ecs->ws.kind == TARGET_WAITKIND_FORKED)
+ fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_FORKED\n");
+ else
+ fprintf_unfiltered (gdb_stdlog, "infrun: TARGET_WAITKIND_VFORKED\n");
+ }
/* Check whether the inferior is displaced stepping. */
{