]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* breakpoint.c (print_one_breakpoint_location): Make sure to print
authorJoel Brobecker <brobecker@gnat.com>
Sat, 19 Apr 2008 01:25:36 +0000 (01:25 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sat, 19 Apr 2008 01:25:36 +0000 (01:25 +0000)
        the breakpoint address only once.

gdb/ChangeLog
gdb/breakpoint.c

index 79406ebaf92cc2a6e0333668e8f187a4a6ca4913..d23c2eacfc41bfbd0b9bba6f3d69d860deabe2ae 100644 (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
index 019f4c8ac3e3830100ccae463c6d98482e70b97f..85022a031ef0dac7f6c89bd6ed51b8562c529187 100644 (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);