Changeset a424315d for src/libcfa
- Timestamp:
- Feb 7, 2018, 9:14:37 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 695571c
- Parents:
- 53217c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/interpose.c
r53217c1 ra424315d 10 10 // Created On : Wed Mar 29 16:10:31 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 6 17:57:56201813 // Update Count : 4912 // Last Modified On : Wed Feb 7 09:05:18 2018 13 // Update Count : 59 14 14 // 15 15 … … 215 215 216 216 void sigHandler_segv( __CFA_SIGPARMS__ ) { 217 abortf( "A ttempt to addresslocation %p\n"217 abortf( "Addressing invalid memory at location %p\n" 218 218 "Possible cause is reading outside the address space or writing to a protected area within the address space with an invalid pointer or subscript.\n", 219 219 sfp->si_addr ); … … 221 221 222 222 void sigHandler_ill( __CFA_SIGPARMS__ ) { 223 abortf( " Attempt to execute codeat location %p.\n"223 abortf( "Executing illegal instruction at location %p.\n" 224 224 "Possible cause is stack corruption.\n", 225 225 sfp->si_addr ); … … 229 229 const char * msg; 230 230 231 switch ( sfp->si_code ) { 232 case FPE_INTDIV: 233 case FPE_FLTDIV: msg = "divide by zero"; break; 234 case FPE_FLTOVF: msg = "overflow"; break; 235 case FPE_FLTUND: msg = "underflow"; break; 236 case FPE_FLTRES: msg = "inexact result"; break; 237 case FPE_FLTINV: msg = "invalid operation"; break; 231 choose( sfp->si_code ) { 232 case FPE_INTDIV, FPE_FLTDIV: msg = "divide by zero"; 233 case FPE_FLTOVF: msg = "overflow"; 234 case FPE_FLTUND: msg = "underflow"; 235 case FPE_FLTRES: msg = "inexact result"; 236 case FPE_FLTINV: msg = "invalid operation"; 238 237 default: msg = "unknown"; 239 } // switch 240 abortf( "Floating point error.\n" 241 "Cause is %s.\n", msg ); 238 } // choose 239 abortf( "Computation error %s at location %p.\n", msg, sfp->si_addr ); 242 240 } 243 241
Note: See TracChangeset
for help on using the changeset viewer.