From: Joel Brobecker Date: Sat, 19 Apr 2008 01:25:36 +0000 (+0000) Subject: * breakpoint.c (print_one_breakpoint_location): Make sure to print X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a209680d770d7ce87ff2632b1e207692806fcce3;p=thirdparty%2Fbinutils-gdb.git * breakpoint.c (print_one_breakpoint_location): Make sure to print the breakpoint address only once. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 79406ebaf92..d23c2eacfc4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-04-18 Joel Brobecker + + * breakpoint.c (print_one_breakpoint_location): Make sure to print + the breakpoint address only once. + 2008-04-16 Daniel Jacobowitz PR gdb/2445 diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 019f4c8ac3e..85022a031ef 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3543,7 +3543,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);