diff options
Diffstat (limited to 'gdb/inline-frame.c')
-rw-r--r-- | gdb/inline-frame.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c index a5e1f20..214cb82 100644 --- a/gdb/inline-frame.c +++ b/gdb/inline-frame.c @@ -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; |