This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tui/14486] resize crashes tui
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 17 Aug 2012 20:16:01 +0000
- Subject: [Bug tui/14486] resize crashes tui
- Auto-submitted: auto-generated
- References: <bug-14486-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14486
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-08-17 20:16:01 UTC ---
This patch
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c
index 9ba9b1d..2027ac4 100644
--- a/gdb/tui/tui-source.c
+++ b/gdb/tui/tui-source.c
@@ -334,7 +334,8 @@ tui_show_symtab_source (struct gdbarch *gdbarch, struct
symtab *s,
int
tui_source_is_displayed (char *fname)
{
- return (TUI_SRC_WIN->generic.content_in_use
+ return (TUI_SRC_WIN
+ && TUI_SRC_WIN->generic.content_in_use
&& (filename_cmp (((struct tui_win_element *)
(tui_locator_win_info_ptr ())->
content[0])->which_element.locator.file_name,
works for me.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.