* breakpoint.c (print_one_breakpoint_location): Make sure to print

the breakpoint address only once.
This commit is contained in:
Joel Brobecker
2008-04-19 01:25:36 +00:00
parent 0c96e254ad
commit a209680d77
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-04-18 Joel Brobecker <brobecker@adacore.com>
* breakpoint.c (print_one_breakpoint_location): Make sure to print
the breakpoint address only once.
2008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
PR gdb/2445

View File

@@ -3543,7 +3543,7 @@ print_one_breakpoint_location (struct breakpoint *b,
annotate_field (4);
if (header_of_multiple)
ui_out_field_string (uiout, "addr", "<MULTIPLE>");
if (b->loc == NULL || loc->shlib_disabled)
else if (b->loc == NULL || loc->shlib_disabled)
ui_out_field_string (uiout, "addr", "<PENDING>");
else
ui_out_field_core_addr (uiout, "addr", loc->address);