From fed708ed1e7754cc2f4edd0bea3535d29bd973bb Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 26 Oct 2012 16:47:17 +0000 Subject: [PATCH] 2012-10-26 Pedro Alves * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED". --- gdb/ChangeLog | 5 +++++ gdb/infrun.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc24b22b011..501aaee643c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-10-26 Pedro Alves + + * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED + as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED". + 2012-10-24 Tristan Gingold * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers): 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. */ { -- 2.30.2