From f1518966c39218ec08ac6f1e0a73b6b650259ab9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 1 Nov 2003 10:59:50 +0100 Subject: unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable. * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable. (uw_frame_state_for): Constify variables. (extract_cie_info): Constify first argument. * unwind-dw2-fde-darwin.c: Adjust prototype of _Unwind_Find_registered_FDE for recent changes. (examine_objects): Constify return value and local variable result. (_Unwind_Find_FDE): Constify return value and local variable ret. From-SVN: r73172 --- gcc/unwind-dw2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/unwind-dw2.c') diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 0b68f11..1e92c02 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -290,7 +290,7 @@ void * _Unwind_FindEnclosingFunction (void *pc) { struct dwarf_eh_bases bases; - struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases); + const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases); if (fde) return bases.func; else @@ -316,7 +316,7 @@ _Unwind_GetTextRelBase (struct _Unwind_Context *context) or NULL if we encountered an undecipherable augmentation. */ static const unsigned char * -extract_cie_info (struct dwarf_cie *cie, struct _Unwind_Context *context, +extract_cie_info (const struct dwarf_cie *cie, struct _Unwind_Context *context, _Unwind_FrameState *fs) { const unsigned char *aug = cie->augmentation; @@ -1001,8 +1001,8 @@ execute_cfa_program (const unsigned char *insn_ptr, static _Unwind_Reason_Code uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs) { - struct dwarf_fde *fde; - struct dwarf_cie *cie; + const struct dwarf_fde *fde; + const struct dwarf_cie *cie; const unsigned char *aug, *insn, *end; memset (fs, 0, sizeof (*fs)); -- cgit v1.1