doc: fix false claim about second argument to gdb
[deliverable/binutils-gdb.git] / gdb / inline-frame.c
index a5e1f20ff744e4ac987d48b73a30cf06e44c9773..214cb824976168a320e468cb2ccf657afc7e6831 100644 (file)
@@ -266,13 +266,14 @@ static int
 block_starting_point_at (CORE_ADDR pc, const struct block *block)
 {
   const struct blockvector *bv;
-  struct block *new_block;
+  const struct block *new_block;
 
   bv = blockvector_for_pc (pc, NULL);
   if (BLOCKVECTOR_MAP (bv) == NULL)
     return 0;
 
-  new_block = (struct block *) addrmap_find (BLOCKVECTOR_MAP (bv), pc - 1);
+  new_block = (const struct block *) addrmap_find (BLOCKVECTOR_MAP (bv),
+                                                  pc - 1);
   if (new_block == NULL)
     return 1;
 
This page took 0.026957 seconds and 4 git commands to generate.