diff options
Diffstat (limited to 'gdb/python/py-block.c')
-rw-r--r-- | gdb/python/py-block.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-block.c b/gdb/python/py-block.c index 6c0f5cbc215..91a3d8ef0a5 100644 --- a/gdb/python/py-block.c +++ b/gdb/python/py-block.c @@ -256,7 +256,8 @@ set_block (block_object *obj, const struct block *block, if (objfile) { obj->objfile = objfile; - obj->next = objfile_data (objfile, blpy_objfile_data_key); + obj->next = ((struct blpy_block_object *) + objfile_data (objfile, blpy_objfile_data_key)); if (obj->next) obj->next->prev = obj; set_objfile_data (objfile, blpy_objfile_data_key, obj); @@ -411,7 +412,7 @@ gdbpy_block_for_pc (PyObject *self, PyObject *args) static void del_objfile_blocks (struct objfile *objfile, void *datum) { - block_object *obj = datum; + block_object *obj = (block_object *) datum; while (obj) { |