From: Michael Snyder Date: Thu, 3 Mar 2011 17:28:45 +0000 (+0000) Subject: 2011-03-03 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58397cb74447f384a9cc803b01b52838c6f82f6d;p=binutils-gdb.git 2011-03-03 Michael Snyder * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize sal.pspace before calling set_current_source_symtab_and_line. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 38a06bf75e4..285c01be8f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-03 Michael Snyder + + * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize + sal.pspace before calling set_current_source_symtab_and_line. + 2011-03-03 Yao Qi * Makefile.in (configure-common): Remove. Let Makefile diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 9556cf12f0e..a7b59458141 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -114,9 +114,11 @@ tui_update_source_window_as_is (struct tui_win_info *win_info, { struct symtab_and_line sal; + init_sal (&sal); sal.line = line_or_addr.u.line_no + (win_info->generic.content_size - 2); sal.symtab = s; + sal.pspace = s->objfile->pspace; set_current_source_symtab_and_line (&sal); /* If the focus was in the asm win, put it in the src win if we don't have a split layout. */