* tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
authorPedro Alves <palves@redhat.com>
Sun, 18 Jan 2009 17:05:49 +0000 (17:05 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 18 Jan 2009 17:05:49 +0000 (17:05 +0000)
skip breakpoints without a location (pending breakpoints).

gdb/ChangeLog
gdb/tui/tui-winsource.c

index d8896512189efed808995e5a914ad25119ae7225..93d72b0213cbf45d4747b9df6e4b181d33d5a334 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-18  Pedro Alves  <pedro@codesourcery.com>
+
+       * tui/tui-winsource.c (tui_update_breakpoint_info): In asm layout,
+       skip breakpoints without a location (pending breakpoints).
+
 2009-01-18  Pedro Alves  <pedro@codesourcery.com>
 
        PR build/9186:
index 241bc9f5f45bcaab13aeb8ffd01bf98a3a873717..b93c2c9d6f26ded43100e03ef9cbf03d93ac629e 100644 (file)
@@ -441,6 +441,7 @@ tui_update_breakpoint_info (struct tui_win_info *win,
                && bp->line_number == line->line_or_addr.u.line_no)
               || (win == TUI_DISASM_WIN
                  && line->line_or_addr.loa == LOA_ADDRESS
+                 && bp->loc != NULL
                   && bp->loc->address == line->line_or_addr.u.addr))
             {
               if (bp->enable_state == bp_disabled)