diff options
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 0a9381e..856b9ef 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -52,11 +52,11 @@ --- hopefully pointing us at the call instruction, or its delay slot instruction. */ -struct block * +const struct block * get_frame_block (struct frame_info *frame, CORE_ADDR *addr_in_block) { CORE_ADDR pc; - struct block *bl; + const struct block *bl; int inline_count; if (!get_frame_address_in_block_if_available (frame, &pc)) @@ -86,7 +86,7 @@ get_frame_block (struct frame_info *frame, CORE_ADDR *addr_in_block) CORE_ADDR get_pc_function_start (CORE_ADDR pc) { - struct block *bl; + const struct block *bl; struct bound_minimal_symbol msymbol; bl = block_for_pc (pc); @@ -118,7 +118,7 @@ get_pc_function_start (CORE_ADDR pc) struct symbol * get_frame_function (struct frame_info *frame) { - struct block *bl = get_frame_block (frame, 0); + const struct block *bl = get_frame_block (frame, 0); if (bl == NULL) return NULL; @@ -136,7 +136,7 @@ get_frame_function (struct frame_info *frame) struct symbol * find_pc_sect_function (CORE_ADDR pc, struct obj_section *section) { - struct block *b = block_for_pc_sect (pc, section); + const struct block *b = block_for_pc_sect (pc, section); if (b == 0) return 0; @@ -338,7 +338,7 @@ block_innermost_frame (const struct block *block) frame = get_current_frame (); while (frame != NULL) { - struct block *frame_block = get_frame_block (frame, NULL); + const struct block *frame_block = get_frame_block (frame, NULL); if (frame_block != NULL && contained_in (frame_block, block)) return frame; |