mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Replace symbol_objfile with symbol::objfile
This turns symbol_objfile into a method on symbol.
This commit is contained in:
@ -306,7 +306,7 @@ frapy_block (PyObject *self, PyObject *args)
|
||||
if (block)
|
||||
{
|
||||
return block_to_block_object
|
||||
(block, symbol_objfile (BLOCK_FUNCTION (fn_block)));
|
||||
(block, BLOCK_FUNCTION (fn_block)->objfile ());
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
|
@ -305,7 +305,7 @@ set_symbol (symbol_object *obj, struct symbol *symbol)
|
||||
if (symbol->is_objfile_owned ()
|
||||
&& symbol_symtab (symbol) != NULL)
|
||||
{
|
||||
struct objfile *objfile = symbol_objfile (symbol);
|
||||
struct objfile *objfile = symbol->objfile ();
|
||||
|
||||
obj->next = ((symbol_object *)
|
||||
objfile_data (objfile, sympy_objfile_data_key));
|
||||
@ -351,7 +351,7 @@ sympy_dealloc (PyObject *obj)
|
||||
&& sym_obj->symbol->is_objfile_owned ()
|
||||
&& symbol_symtab (sym_obj->symbol) != NULL)
|
||||
{
|
||||
set_objfile_data (symbol_objfile (sym_obj->symbol),
|
||||
set_objfile_data (sym_obj->symbol->objfile (),
|
||||
sympy_objfile_data_key, sym_obj->next);
|
||||
}
|
||||
if (sym_obj->next)
|
||||
|
Reference in New Issue
Block a user