Ignore:
Timestamp:
Mar 5, 2020, 3:51:44 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bc9384ac
Parents:
a037f85 (diff), f9723e8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/exception.c

    ra037f85 r289c7d2  
    7272// Used in the personality function, way down in termination.
    7373// struct _Unwind_Context * -> _Unwind_Reason_Code(*)(exception_t *)
     74#if defined( __x86_64 )
    7475#define MATCHER_FROM_CONTEXT(ptr_to_context) \
    7576        (*(_Unwind_Reason_Code(**)(exception_t *))(_Unwind_GetCFA(ptr_to_context) + 8))
    76 
     77#elif defined( __i386 )
     78#define MATCHER_FROM_CONTEXT(ptr_to_context) \
     79        (*(_Unwind_Reason_Code(**)(exception_t *))(_Unwind_GetCFA(ptr_to_context) + 24))
     80#endif
    7781
    7882// RESUMPTION ================================================================
Note: See TracChangeset for help on using the changeset viewer.