diff options
Diffstat (limited to 'gdb/python/py-symbol.c')
-rw-r--r-- | gdb/python/py-symbol.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |