From aff0895837de06af4e16b809d1f2eb17930297ad Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 18 Nov 2014 08:54:06 -0800 Subject: Use SYMBOL_OBJFILE more. gdb/ChangeLog: * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use SYMBOL_OBJFILE. * findvar.c (default_read_var_value): Ditto. * jv-lang.c (add_class_symtab_symbol): Ditto. * parse.c (operator_check_standard): Ditto. * printcmd.c (address_info): Ditto. * symtab.c (fixup_symbol_section): Ditto. (skip_prologue_sal): Ditto. * tracepoint.c (scope_info): Ditto. * valops.c (find_function_in_inferior): Ditto. * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto. * python/py-symbol.c (set_symbol): Ditto. --- gdb/python/py-symbol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/python/py-symbol.c') diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c index 716f93d8..caf0a74 100644 --- a/gdb/python/py-symbol.c +++ b/gdb/python/py-symbol.c @@ -292,12 +292,12 @@ set_symbol (symbol_object *obj, struct symbol *symbol) obj->prev = NULL; if (SYMBOL_SYMTAB (symbol)) { - obj->next = objfile_data (SYMBOL_SYMTAB (symbol)->objfile, + obj->next = objfile_data (SYMBOL_OBJFILE (symbol), sympy_objfile_data_key); if (obj->next) obj->next->prev = obj; - set_objfile_data (SYMBOL_SYMTAB (symbol)->objfile, + set_objfile_data (SYMBOL_OBJFILE (symbol), sympy_objfile_data_key, obj); } else @@ -336,7 +336,7 @@ sympy_dealloc (PyObject *obj) sym_obj->prev->next = sym_obj->next; else if (sym_obj->symbol && SYMBOL_SYMTAB (sym_obj->symbol)) { - set_objfile_data (SYMBOL_SYMTAB (sym_obj->symbol)->objfile, + set_objfile_data (SYMBOL_OBJFILE (sym_obj->symbol), sympy_objfile_data_key, sym_obj->next); } if (sym_obj->next) -- cgit v1.1