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/symtab.h | |
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/symtab.h')
-rw-r--r-- | gdb/symtab.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 257d3be..fdedd59 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -774,7 +774,7 @@ extern const struct symbol_impl *symbol_impls; #define SYMBOL_BLOCK_OPS(symbol) (SYMBOL_IMPL (symbol).ops_block) #define SYMBOL_REGISTER_OPS(symbol) (SYMBOL_IMPL (symbol).ops_register) #define SYMBOL_LOCATION_BATON(symbol) (symbol)->aux_value -#define SYMBOL_OBJFILE(symbol) (SYMBOL_SYMTAB (symbol)->objfile) +#define SYMBOL_OBJFILE(symbol) SYMTAB_OBJFILE (SYMBOL_SYMTAB (symbol)) extern int register_symbol_computed_impl (enum address_class, const struct symbol_computed_ops *); @@ -982,7 +982,8 @@ struct symtab #define BLOCKVECTOR(symtab) (symtab)->blockvector #define LINETABLE(symtab) (symtab)->linetable -#define SYMTAB_PSPACE(symtab) (symtab)->objfile->pspace +#define SYMTAB_OBJFILE(symtab) ((symtab)->objfile) +#define SYMTAB_PSPACE(symtab) (SYMTAB_OBJFILE (symtab)->pspace) /* Call this to set the "primary" field in struct symtab. */ extern void set_symtab_primary (struct symtab *, int primary); |