* breakpoint.c (print_one_breakpoint_location): Make sure to print
authorJoel Brobecker <brobecker@gnat.com>
Thu, 17 Apr 2008 22:43:17 +0000 (22:43 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 17 Apr 2008 22:43:17 +0000 (22:43 +0000)
        the breakpoint address only once.

gdb/ChangeLog
gdb/breakpoint.c

index 7fdc17d10c5e3e2356ee81b4f18cf0a54ff12c68..881e61457518d4b33ad5fae36e5c7b140f31332e 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.c (print_one_breakpoint_location): Make sure to print
+       the breakpoint address only once.
+
 2008-04-17  Dennis Roberts  <dennis.roberts@sunquestinfo.com>
 
        * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
index ebd21d4bbdb52dfae78b1afa9550b0c39ade9f3b..20849c07546a2301cda25287b0ac0694f6ac8534 100644 (file)
@@ -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);