Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: gdb/tui/tui-winsource.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/tui/tui-winsource.h ('k') | gdb/typeprint.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/tui/tui-winsource.c
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 53a45a2cb3cd6a4600f3e5c050517287a27bdeca..ffa1ee6242b818953e5fc382c445d22d5d5605ed 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -1,6 +1,6 @@
/* TUI display source/assembly window.
- Copyright (C) 1998-2004, 2006-2012 Free Software Foundation, Inc.
+ Copyright (C) 1998-2013 Free Software Foundation, Inc.
Contributed by Hewlett-Packard Company.
@@ -38,7 +38,7 @@
#include "tui/tui-source.h"
#include "tui/tui-disasm.h"
-#include "gdb_string.h"
+#include <string.h>
#include "gdb_curses.h"
#include "gdb_assert.h"
@@ -59,9 +59,9 @@ tui_display_main (void)
tui_update_source_windows_with_addr (gdbarch, addr);
sal = find_pc_line (addr, 0);
if (sal.symtab)
- tui_update_locator_filename (sal.symtab->filename);
+ tui_update_locator_fullname (symtab_to_fullname (sal.symtab));
else
- tui_update_locator_filename ("??");
+ tui_update_locator_fullname ("??");
}
}
}
@@ -462,8 +462,9 @@ tui_update_breakpoint_info (struct tui_win_info *win,
for (loc = bp->loc; loc != NULL; loc = loc->next)
{
if ((win == TUI_SRC_WIN
- && loc->source_file
- && (filename_cmp (src->filename, loc->source_file) == 0)
+ && loc->symtab != NULL
+ && filename_cmp (src->fullname,
+ symtab_to_fullname (loc->symtab)) == 0
&& line->line_or_addr.loa == LOA_LINE
&& loc->line_number == line->line_or_addr.u.line_no)
|| (win == TUI_DISASM_WIN
« no previous file with comments | « gdb/tui/tui-winsource.h ('k') | gdb/typeprint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698