Changeset 67ca73e
- Timestamp:
- Aug 20, 2020, 11:40:37 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e67a82d
- Parents:
- 88cafe7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/exception.c
r88cafe7 r67ca73e 9 9 // Author : Andrew Beach 10 10 // Created On : Mon Jun 26 15:13:00 2017 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr May 21 12:18:00202013 // Update Count : 2 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 15 07:17:19 2020 13 // Update Count : 26 14 14 // 15 15 … … 21 21 // Implementation of the secret header is hardware dependent. 22 22 #if !( defined( __x86_64 ) || defined( __i386 ) ) 23 #error Exception Handling: No known architecture detected. 23 #elif defined( __ARM_ARCH ) 24 #warning FIX ME: check if anything needed for ARM 25 #else 26 #warning Exception Handling: No known architecture detected. 24 27 #endif 25 28 … … 297 300 abort(); 298 301 } 299 302 #if 0 300 303 // This is our personality routine. For every stack frame annotated with 301 304 // ".cfi_personality 0x3,__gcfa_personality_v0" this function will be called twice when unwinding. … … 409 412 cur_ptr = read_uleb128(cur_ptr, &imatcher); 410 413 414 _Unwind_Word match_pos = 411 415 # if defined( __x86_64 ) 412 _Unwind_Word match_pos =_Unwind_GetCFA(unwind_context) + 8;416 _Unwind_GetCFA(unwind_context) + 8; 413 417 # elif defined( __i386 ) 414 _Unwind_Word match_pos = _Unwind_GetCFA(unwind_context) + 24; 418 _Unwind_GetCFA(unwind_context) + 24; 419 # elif defined( __ARM_ARCH ) 420 # warning FIX ME: check if anything needed for ARM 421 42; 415 422 # endif 416 423 int (*matcher)(exception_t *) = *(int(**)(exception_t *))match_pos; … … 602 609 603 610 #pragma GCC pop_options 611 #endif // 0
Note: See TracChangeset
for help on using the changeset viewer.