From d36bf488d82165827ef07052ecf775906d7d04a9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 13 Sep 2014 16:00:13 -0700 Subject: [PATCH] * linux-nat.c (wait_lwp): Add debugging printf. (linux_nat_wait_1): Ditto. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0b9e140bb82..6c442eb69a5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-09-13 Doug Evans + + * linux-nat.c (wait_lwp): Add debugging printf. + (linux_nat_wait_1): Ditto. + 2014-09-12 Pedro Alves * breakpoint.c (remove_solib_event_breakpoints_at_next_stop) diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 0898442f6d3..557c84b4d53 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2311,6 +2311,8 @@ wait_lwp (struct lwp_info *lp) again before it gets to sigsuspend so we can safely let the handlers get executed here. */ + if (debug_linux_nat) + fprintf_unfiltered (gdb_stdlog, "WL: about to sigsuspend\n"); sigsuspend (&suspend_mask); } @@ -3441,6 +3443,8 @@ retry: gdb_assert (lp == NULL); /* Block until we get an event reported with SIGCHLD. */ + if (debug_linux_nat) + fprintf_unfiltered (gdb_stdlog, "LNW: about to sigsuspend\n"); sigsuspend (&suspend_mask); } -- 2.30.2