diff options
author | Pedro Alves <palves@redhat.com> | 2011-05-18 16:20:27 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-05-18 16:20:27 +0000 |
commit | 0d9a9a5ffe87171feea96f763370b86ccf873b56 (patch) | |
tree | e58beb6b5f7a81b044d3f36c8bc7168285a842e9 /gdb/infrun.c | |
parent | 05386e9ec7208d79280caffeff0b01ebea63875c (diff) | |
download | binutils-gdb-0d9a9a5ffe87171feea96f763370b86ccf873b56.tar.gz |
2011-05-18 Pedro Alves <pedro@codesourcery.com>
gdb/
* infrun.c (resume): Mention which is the current thread, and its
current PC in debug output.
(prepare_to_proceed): Mention the thread switching in debug
output.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 0a15ea3f9b3..8d6910df4a0 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1644,8 +1644,10 @@ resume (int step, enum target_signal sig) if (debug_infrun) fprintf_unfiltered (gdb_stdlog, "infrun: resume (step=%d, signal=%d), " - "trap_expected=%d\n", - step, sig, tp->control.trap_expected); + "trap_expected=%d, current thread [%s] at %s\n", + step, sig, tp->control.trap_expected, + target_pid_to_str (inferior_ptid), + paddress (gdbarch, pc)); /* Normally, by the time we reach `resume', the breakpoints are either removed or inserted, as appropriate. The exception is if we're sitting @@ -2001,6 +2003,12 @@ prepare_to_proceed (int step) /* Switch back to WAIT_PID thread. */ switch_to_thread (wait_ptid); + if (debug_infrun) + fprintf_unfiltered (gdb_stdlog, + "infrun: prepare_to_proceed (step=%d), " + "switched to [%s]\n", + step, target_pid_to_str (inferior_ptid)); + /* We return 1 to indicate that there is a breakpoint here, so we need to step over it before continuing to avoid hitting it straight away. */ |