Replace some symbol accessor macros with functions.
authorDoug Evans <xdje42@gmail.com>
Tue, 23 Dec 2014 15:21:10 +0000 (07:21 -0800)
committerDoug Evans <xdje42@gmail.com>
Tue, 23 Dec 2014 15:21:10 +0000 (07:21 -0800)
commit08be3fe322244a3684d007d9282e225fc215f5d8
tree083e30284643e51dbc49b6b3ab9a3e3a5a0e6e35
parent4347085ad3e84bdc1f91e7121cedf3e79a9467fb
Replace some symbol accessor macros with functions.

gdb/ChangeLog:

* symtab.h (SYMBOL_SYMTAB): Delete
(SYMBOL_OBJFILE): Delete.
(symbol_symtab, symbol_set_symtab): Declare.
(symbol_objfile, symbol_arch): Declare.
* symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB.  All uses updated.
All references to symbol->symtab redirected through here.
(symbol_set_symtab): New function.  All assignments to SYMBOL_SYMTAB
redirected through here.
(symbol_arch): New function.
(symbol_objfile): New function.  Replaces SYMBOL_OBJFILE.
All uses updated.
* cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
symbol_arch.
* findvar.c (default_read_var_value): Call symbol_arch.
* guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
* jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
* printcmd.c (address_info): Call symbol_arch.
* tracepoint.c (scope_info): Call symbol_arch.
26 files changed:
gdb/ChangeLog
gdb/ada-lang.c
gdb/btrace.c
gdb/buildsym.c
gdb/compile/compile-c-symbols.c
gdb/cp-namespace.c
gdb/dwarf2read.c
gdb/findvar.c
gdb/frame.c
gdb/guile/scm-frame.c
gdb/guile/scm-symbol.c
gdb/infcmd.c
gdb/jit.c
gdb/jv-lang.c
gdb/linespec.c
gdb/mdebugread.c
gdb/parse.c
gdb/printcmd.c
gdb/python/py-frame.c
gdb/python/py-symbol.c
gdb/record-btrace.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h
gdb/tracepoint.c
gdb/valops.c