mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
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.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2011-05-18 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2011-05-18 Tom Tromey <tromey@redhat.com>
|
2011-05-18 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
|
* linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
|
||||||
|
12
gdb/infrun.c
12
gdb/infrun.c
@ -1644,8 +1644,10 @@ resume (int step, enum target_signal sig)
|
|||||||
if (debug_infrun)
|
if (debug_infrun)
|
||||||
fprintf_unfiltered (gdb_stdlog,
|
fprintf_unfiltered (gdb_stdlog,
|
||||||
"infrun: resume (step=%d, signal=%d), "
|
"infrun: resume (step=%d, signal=%d), "
|
||||||
"trap_expected=%d\n",
|
"trap_expected=%d, current thread [%s] at %s\n",
|
||||||
step, sig, tp->control.trap_expected);
|
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
|
/* Normally, by the time we reach `resume', the breakpoints are either
|
||||||
removed or inserted, as appropriate. The exception is if we're sitting
|
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 back to WAIT_PID thread. */
|
||||||
switch_to_thread (wait_ptid);
|
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,
|
/* We return 1 to indicate that there is a breakpoint here,
|
||||||
so we need to step over it before continuing to avoid
|
so we need to step over it before continuing to avoid
|
||||||
hitting it straight away. */
|
hitting it straight away. */
|
||||||
|
Reference in New Issue
Block a user