diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-block.c | 2 | ||||
-rw-r--r-- | gdb/python/py-frame.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-block.c b/gdb/python/py-block.c index e5e136b6988..3fa4530487b 100644 --- a/gdb/python/py-block.c +++ b/gdb/python/py-block.c @@ -371,7 +371,7 @@ PyObject * gdbpy_block_for_pc (PyObject *self, PyObject *args) { gdb_py_ulongest pc; - struct block *block = NULL; + const struct block *block = NULL; struct obj_section *section = NULL; struct symtab *symtab = NULL; volatile struct gdb_exception except; diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 77077d3f00c..120e147e656 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -242,7 +242,7 @@ static PyObject * frapy_block (PyObject *self, PyObject *args) { struct frame_info *frame; - struct block *block = NULL, *fn_block; + const struct block *block = NULL, *fn_block; volatile struct gdb_exception except; TRY_CATCH (except, RETURN_MASK_ALL) |