diff options
author | Doug Evans <xdje42@gmail.com> | 2014-12-23 07:21:10 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-12-23 07:21:10 -0800 |
commit | 08be3fe322244a3684d007d9282e225fc215f5d8 (patch) | |
tree | 083e30284643e51dbc49b6b3ab9a3e3a5a0e6e35 /gdb/buildsym.c | |
parent | 4347085ad3e84bdc1f91e7121cedf3e79a9467fb (diff) | |
download | gdb-08be3fe322244a3684d007d9282e225fc215f5d8.zip gdb-08be3fe322244a3684d007d9282e225fc215f5d8.tar.gz gdb-08be3fe322244a3684d007d9282e225fc215f5d8.tar.bz2 |
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.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index 35b3f17..0797c95 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -1451,15 +1451,15 @@ end_symtab_with_blockvector (struct block *static_block, /* Inlined functions may have symbols not in the global or static symbol lists. */ if (BLOCK_FUNCTION (block) != NULL) - if (SYMBOL_SYMTAB (BLOCK_FUNCTION (block)) == NULL) - SYMBOL_SYMTAB (BLOCK_FUNCTION (block)) = symtab; + if (symbol_symtab (BLOCK_FUNCTION (block)) == NULL) + symbol_set_symtab (BLOCK_FUNCTION (block), symtab); /* Note that we only want to fix up symbols from the local blocks, not blocks coming from included symtabs. That is why we use ALL_DICT_SYMBOLS here and not ALL_BLOCK_SYMBOLS. */ ALL_DICT_SYMBOLS (BLOCK_DICT (block), iter, sym) - if (SYMBOL_SYMTAB (sym) == NULL) - SYMBOL_SYMTAB (sym) = symtab; + if (symbol_symtab (sym) == NULL) + symbol_set_symtab (sym, symtab); } } @@ -1560,8 +1560,8 @@ set_missing_symtab (struct pending *pending_list, { for (i = 0; i < pending->nsyms; ++i) { - if (SYMBOL_SYMTAB (pending->symbol[i]) == NULL) - SYMBOL_SYMTAB (pending->symbol[i]) = COMPUNIT_FILETABS (cu); + if (symbol_symtab (pending->symbol[i]) == NULL) + symbol_set_symtab (pending->symbol[i], COMPUNIT_FILETABS (cu)); } } } |