Changeset 190224d


Ignore:
Timestamp:
Feb 28, 2020, 5:53:24 PM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
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:
1e2de89
Parents:
dac55004
Message:

Exceptions should now work on 32bit. Testing error corrected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/exception.c

    rdac55004 r190224d  
    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.