aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-progspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-progspace.c')
-rw-r--r--gdb/python/py-progspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c
index b27ebf4..1e01068 100644
--- a/gdb/python/py-progspace.c
+++ b/gdb/python/py-progspace.c
@@ -388,7 +388,7 @@ pspy_block_for_pc (PyObject *o, PyObject *args)
set_current_program_space (self->pspace);
cust = find_pc_compunit_symtab (pc);
- if (cust != NULL && COMPUNIT_OBJFILE (cust) != NULL)
+ if (cust != NULL && cust->objfile () != NULL)
block = block_for_pc (pc);
}
catch (const gdb_exception &except)
@@ -396,11 +396,11 @@ pspy_block_for_pc (PyObject *o, PyObject *args)
GDB_PY_HANDLE_EXCEPTION (except);
}
- if (cust == NULL || COMPUNIT_OBJFILE (cust) == NULL)
+ if (cust == NULL || cust->objfile () == NULL)
Py_RETURN_NONE;
if (block)
- return block_to_block_object (block, COMPUNIT_OBJFILE (cust));
+ return block_to_block_object (block, cust->objfile ());
Py_RETURN_NONE;
}