aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-04-17 22:43:17 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-04-17 22:43:17 +0000
commite9bbd7c5e43873cff4050cad26808f727294f7cc (patch)
treec99b12f1a6634fa5a4a95c4309c651213573e166 /gdb/breakpoint.c
parent100906b03a41972b1fffc24d33dd653b17b26c47 (diff)
downloadgdb-e9bbd7c5e43873cff4050cad26808f727294f7cc.zip
gdb-e9bbd7c5e43873cff4050cad26808f727294f7cc.tar.gz
gdb-e9bbd7c5e43873cff4050cad26808f727294f7cc.tar.bz2
* breakpoint.c (print_one_breakpoint_location): Make sure to print
the breakpoint address only once.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ebd21d4..20849c0 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", "<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);