diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:19:11 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-18 09:19:11 -0800 |
commit | eb822aa6d0f2cdc1a3125da084b96c5bbe32cb86 (patch) | |
tree | d26ba8ac15567c8accf2d4bb9b24a4ed83d00a1d /gdb/cli | |
parent | 98387a2917d136b1acbaa9229d5b6a787d9efd54 (diff) | |
download | gdb-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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index a9f90b2..0c3cfa7 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -818,7 +818,7 @@ edit_command (char *arg, int from_tty) error (_("No source file for address %s."), paddress (get_current_arch (), sal.pc)); - gdbarch = get_objfile_arch (sal.symtab->objfile); + gdbarch = get_objfile_arch (SYMTAB_OBJFILE (sal.symtab)); sym = find_pc_function (sal.pc); if (sym) printf_filtered ("%s is in %s (%s:%d).\n", @@ -1003,7 +1003,7 @@ list_command (char *arg, int from_tty) error (_("No source file for address %s."), paddress (get_current_arch (), sal.pc)); - gdbarch = get_objfile_arch (sal.symtab->objfile); + gdbarch = get_objfile_arch (SYMTAB_OBJFILE (sal.symtab)); sym = find_pc_function (sal.pc); if (sym) printf_filtered ("%s is in %s (%s:%d).\n", |