diff options
author | Richard Henderson <rth@redhat.com> | 2003-04-02 18:06:55 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-04-02 18:06:55 -0800 |
commit | 378683cf6216f2edcd3bb5bf2f093fa54c6aa524 (patch) | |
tree | 7433063c424c782545dd2cf4acde6bc197bcc1e4 /gcc/unwind-dw2.c | |
parent | 63dfa9bb2a6459eebb2f0ab2469d9e6c9307f14e (diff) | |
download | gcc-378683cf6216f2edcd3bb5bf2f093fa54c6aa524.zip gcc-378683cf6216f2edcd3bb5bf2f093fa54c6aa524.tar.gz gcc-378683cf6216f2edcd3bb5bf2f093fa54c6aa524.tar.bz2 |
libgcc-std.ver (_Unwind_GetCFA): New.
* libgcc-std.ver (_Unwind_GetCFA): New.
* unwind-dw2.c (_Unwind_GetCFA): New.
* unwind-libunwind.c (_Unwind_GetCFA): New.
* unwind-sjlj.c (_Unwind_GetCFA): New.
* unwind.h: Declare it.
From-SVN: r65190
Diffstat (limited to 'gcc/unwind-dw2.c')
-rw-r--r-- | gcc/unwind-dw2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c index 88d8d30..bce8e5e 100644 --- a/gcc/unwind-dw2.c +++ b/gcc/unwind-dw2.c @@ -173,6 +173,14 @@ _Unwind_GetGR (struct _Unwind_Context *context, int index) return * (_Unwind_Word *) context->reg[index]; } +/* Get the value of the CFA as saved in CONTEXT. */ + +_Unwind_Word +_Unwind_GetCFA (struct _Unwind_Context *context) +{ + return context->cfa; +} + /* Overwrite the saved value for register REG in CONTEXT with VAL. */ inline void |