aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-10-26 16:47:17 +0000
committerPedro Alves <palves@redhat.com>2012-10-26 16:47:17 +0000
commitfed708ed1e7754cc2f4edd0bea3535d29bd973bb (patch)
tree0e5a1ab9215d54698ab66860c87222560582b338 /gdb/infrun.c
parent31f7d8fd1937abcd7ec6deff38025bcdb5b57540 (diff)
downloadgdb-fed708ed1e7754cc2f4edd0bea3535d29bd973bb.zip
gdb-fed708ed1e7754cc2f4edd0bea3535d29bd973bb.tar.gz
gdb-fed708ed1e7754cc2f4edd0bea3535d29bd973bb.tar.bz2
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 0caa1ac..eb97c52 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. */
{