aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-03 17:28:45 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-03 17:28:45 +0000
commit58397cb74447f384a9cc803b01b52838c6f82f6d (patch)
tree34237a3988a6ac0aca028a542e0309ec56641924 /gdb/tui
parent30e6268931a753d2ee577177ce0ae6032470874d (diff)
downloadgdb-58397cb74447f384a9cc803b01b52838c6f82f6d.zip
gdb-58397cb74447f384a9cc803b01b52838c6f82f6d.tar.gz
gdb-58397cb74447f384a9cc803b01b52838c6f82f6d.tar.bz2
2011-03-03 Michael Snyder <msnyder@vmware.com>
* tui/tui-winsource.c (tui_update_source_window_as_is): Initialize sal.pspace before calling set_current_source_symtab_and_line.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-winsource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 9556cf1..a7b5945 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. */