mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 05:12:28 +08:00
2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
* breakpoint.c (describe_other_breakpoints): Add thread parameter. Annotate display with thread number where appropriate. (create_breakpoints): Add thread parameter to call to describe_other_breakpoints.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2006-10-19 Andrew Stubbs <andrew.stubbs@st.com>
|
||||||
|
|
||||||
|
* breakpoint.c (describe_other_breakpoints): Add thread parameter.
|
||||||
|
Annotate display with thread number where appropriate.
|
||||||
|
(create_breakpoints): Add thread parameter to call to
|
||||||
|
describe_other_breakpoints.
|
||||||
|
|
||||||
2006-10-18 Jim Blandy <jimb@codesourcery.com>
|
2006-10-18 Jim Blandy <jimb@codesourcery.com>
|
||||||
Daniel Jacobowitz <dan@codesourcery.com>
|
Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ static void breakpoint_adjustment_warning (CORE_ADDR, CORE_ADDR, int, int);
|
|||||||
static CORE_ADDR adjust_breakpoint_address (CORE_ADDR bpaddr,
|
static CORE_ADDR adjust_breakpoint_address (CORE_ADDR bpaddr,
|
||||||
enum bptype bptype);
|
enum bptype bptype);
|
||||||
|
|
||||||
static void describe_other_breakpoints (CORE_ADDR, asection *);
|
static void describe_other_breakpoints (CORE_ADDR, asection *, int);
|
||||||
|
|
||||||
static void breakpoints_info (char *, int);
|
static void breakpoints_info (char *, int);
|
||||||
|
|
||||||
@ -3782,7 +3782,7 @@ maintenance_info_breakpoints (char *bnum_exp, int from_tty)
|
|||||||
/* Print a message describing any breakpoints set at PC. */
|
/* Print a message describing any breakpoints set at PC. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
describe_other_breakpoints (CORE_ADDR pc, asection *section)
|
describe_other_breakpoints (CORE_ADDR pc, asection *section, int thread)
|
||||||
{
|
{
|
||||||
int others = 0;
|
int others = 0;
|
||||||
struct breakpoint *b;
|
struct breakpoint *b;
|
||||||
@ -3802,12 +3802,16 @@ describe_other_breakpoints (CORE_ADDR pc, asection *section)
|
|||||||
if (!b->pending && (!overlay_debugging || b->loc->section == section))
|
if (!b->pending && (!overlay_debugging || b->loc->section == section))
|
||||||
{
|
{
|
||||||
others--;
|
others--;
|
||||||
printf_filtered ("%d%s%s ",
|
printf_filtered ("%d", b->number);
|
||||||
b->number,
|
if (b->thread == -1 && thread != -1)
|
||||||
|
printf_filtered (" (all threads)");
|
||||||
|
else if (b->thread != -1)
|
||||||
|
printf_filtered (" (thread %d)", b->thread);
|
||||||
|
printf_filtered ("%s%s ",
|
||||||
((b->enable_state == bp_disabled ||
|
((b->enable_state == bp_disabled ||
|
||||||
b->enable_state == bp_shlib_disabled ||
|
b->enable_state == bp_shlib_disabled ||
|
||||||
b->enable_state == bp_call_disabled)
|
b->enable_state == bp_call_disabled)
|
||||||
? " (disabled)"
|
? " (disabled)"
|
||||||
: b->enable_state == bp_permanent
|
: b->enable_state == bp_permanent
|
||||||
? " (permanent)"
|
? " (permanent)"
|
||||||
: ""),
|
: ""),
|
||||||
@ -4960,7 +4964,7 @@ create_breakpoints (struct symtabs_and_lines sals, char **addr_string,
|
|||||||
struct symtab_and_line sal = sals.sals[i];
|
struct symtab_and_line sal = sals.sals[i];
|
||||||
|
|
||||||
if (from_tty)
|
if (from_tty)
|
||||||
describe_other_breakpoints (sal.pc, sal.section);
|
describe_other_breakpoints (sal.pc, sal.section, thread);
|
||||||
|
|
||||||
b = set_raw_breakpoint (sal, type);
|
b = set_raw_breakpoint (sal, type);
|
||||||
set_breakpoint_count (breakpoint_count + 1);
|
set_breakpoint_count (breakpoint_count + 1);
|
||||||
|
Reference in New Issue
Block a user