summaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-11-01 10:59:50 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2003-11-01 10:59:50 +0100
commitf1518966c39218ec08ac6f1e0a73b6b650259ab9 (patch)
tree979d73e2cbba427d30603801daf43b6ff3a25bd1 /gcc/unwind-dw2.c
parent8ecde51ffffdb689608d99229cb05959e78e1c13 (diff)
downloadgcc-f1518966c39218ec08ac6f1e0a73b6b650259ab9.tar.gz
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
Diffstat (limited to 'gcc/unwind-dw2.c')
-rw-r--r--gcc/unwind-dw2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c
index 0b68f11972c..1e92c023889 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));