aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-18 09:19:11 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-18 09:19:11 -0800
commiteb822aa6d0f2cdc1a3125da084b96c5bbe32cb86 (patch)
treed26ba8ac15567c8accf2d4bb9b24a4ed83d00a1d /gdb/tui
parent98387a2917d136b1acbaa9229d5b6a787d9efd54 (diff)
downloadgdb-eb822aa6d0f2cdc1a3125da084b96c5bbe32cb86.zip
gdb-eb822aa6d0f2cdc1a3125da084b96c5bbe32cb86.tar.gz
gdb-eb822aa6d0f2cdc1a3125da084b96c5bbe32cb86.tar.bz2
SYMTAB_OBJFILE: New macro.
gdb/ChangeLog: * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member symtab.objfile updated to use it.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-source.c2
-rw-r--r--gdb/tui/tui-winsource.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-source.c b/gdb/tui/tui-source.c
index 9842bb3..5cdd2e4 100644
--- a/gdb/tui/tui-source.c
+++ b/gdb/tui/tui-source.c
@@ -111,7 +111,7 @@ tui_set_source_content (struct symtab *s,
stream = fdopen (desc, FOPEN_RT);
clearerr (stream);
cur_line = 0;
- src->gdbarch = get_objfile_arch (s->objfile);
+ src->gdbarch = get_objfile_arch (SYMTAB_OBJFILE (s));
src->start_line_or_addr.loa = LOA_LINE;
cur_line_no = src->start_line_or_addr.u.line_no = line_no;
if (offset > 0)
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 48a95e4..9768c6d 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -115,7 +115,7 @@ tui_update_source_window_as_is (struct tui_win_info *win_info,
sal.line = line_or_addr.u.line_no +
(win_info->generic.content_size - 2);
sal.symtab = s;
- sal.pspace = s->objfile->pspace;
+ sal.pspace = SYMTAB_PSPACE (s);
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. */
@@ -183,7 +183,7 @@ tui_update_source_windows_with_line (struct symtab *s, int line)
if (!s)
return;
- gdbarch = get_objfile_arch (s->objfile);
+ gdbarch = get_objfile_arch (SYMTAB_OBJFILE (s));
switch (tui_current_layout ())
{