diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/sol-thread.c | 12 |
2 files changed, 10 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff51bc7..1b5da8d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-05-08 Joel Brobecker <brobecker@adacore.com> + * sol-thread.c (info_cb): Rework the output of the "maintenance + info sol-threads" command a bit. + +2013-05-08 Joel Brobecker <brobecker@adacore.com> + * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]: Replace ti.ti_startfunc by ti.ti_pc. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 6faf91d..c16ad98 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -1119,10 +1119,10 @@ info_cb (const td_thrhandle_t *th, void *s) = lookup_minimal_symbol_by_pc (ti.ti_startfunc); if (msym.minsym) - printf_filtered (" startfunc: %s\n", + printf_filtered (" startfunc=%s", SYMBOL_PRINT_NAME (msym.minsym)); else - printf_filtered (" startfunc: %s\n", + printf_filtered (" startfunc=%s", paddress (target_gdbarch (), ti.ti_startfunc)); } @@ -1133,16 +1133,14 @@ info_cb (const td_thrhandle_t *th, void *s) = lookup_minimal_symbol_by_pc (ti.ti_pc); if (msym.minsym) - printf_filtered (" - Sleep func: %s\n", + printf_filtered (" sleepfunc=%s", SYMBOL_PRINT_NAME (msym.minsym)); else - printf_filtered (" - Sleep func: %s\n", + printf_filtered (" sleepfunc=%s", paddress (target_gdbarch (), ti.ti_pc)); } - /* Wrap up line, if necessary. */ - if (ti.ti_state != TD_THR_SLEEP && ti.ti_startfunc == 0) - printf_filtered ("\n"); /* don't you hate counting newlines? */ + printf_filtered ("\n"); } else warning (_("info sol-thread: failed to get info for thread.")); |