]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-block.c
constify struct block in some places
[thirdparty/binutils-gdb.git] / gdb / python / py-block.c
index e5e136b6988d2a5d6fcc730d98665d542a107ce4..3fa4530487b72f486e2b1cb2cc1dd501291dcccf 100644 (file)
@@ -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;