From 15fa9996adc84395afb4df0de34a5074c3516002 Mon Sep 17 00:00:00 2001 From: brobecke Date: Thu, 17 Apr 2008 22:43:17 +0000 Subject: [PATCH] * breakpoint.c (print_one_breakpoint_location): Make sure to print the breakpoint address only once. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7fdc17d10c..881e614575 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-04-17 Joel Brobecker + + * breakpoint.c (print_one_breakpoint_location): Make sure to print + the breakpoint address only once. + 2008-04-17 Dennis Roberts * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture, diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index ebd21d4bbd..20849c0754 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3607,7 +3607,7 @@ print_one_breakpoint_location (struct breakpoint *b, annotate_field (4); if (header_of_multiple) ui_out_field_string (uiout, "addr", ""); - if (b->loc == NULL || loc->shlib_disabled) + else if (b->loc == NULL || loc->shlib_disabled) ui_out_field_string (uiout, "addr", ""); else ui_out_field_core_addr (uiout, "addr", loc->address); -- 2.11.0