Changeset 30548de for libcfa/src/exception.c
- Timestamp:
- Apr 11, 2025, 6:39:45 PM (8 months ago)
- Branches:
- master
- Children:
- a514fed
- Parents:
- a800a19
- File:
-
- 1 edited
-
libcfa/src/exception.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/exception.c
ra800a19 r30548de 10 10 // Created On : Mon Jun 26 15:13:00 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 10 16:45:22 202313 // Update Count : 6912 // Last Modified On : Wed Sep 25 17:23:49 2024 13 // Update Count : 74 14 14 // 15 15 … … 27 27 #include "stdhdr/assert.h" 28 28 #include "virtual.h" 29 #include <unistd.h> // write 29 30 30 31 extern void __cabi_abort( const char fmt[], ... ); … … 124 125 case _URC_FATAL_PHASE2_ERROR: 125 126 default: 127 write( 2, "abort1\n", 7 ); 126 128 abort(); 127 129 } … … 138 140 if ( ! store ) { 139 141 // Failure: cannot allocate exception. Terminate thread. 142 write( 2, "abort2\n", 7 ); 140 143 abort(); // <- Although I think it might be the process. 141 144 } … … 200 203 __cabi_abort( 201 204 "Propagation failed to find a matching handler.\n" 202 "Possible cause is a missing try block with appropriate catch clause for specified exception type.\n"205 "Possible cause is a missing try block with appropriate catch clause for the specified or derived exception type.\n" 203 206 "Last exception name or message: %s.\n", 204 207 NODE_TO_EXCEPT( UNWIND_TO_NODE( unwind_exception ) )-> … … 225 228 ret = __cfaehm_cancellation_unwind( &node->unwind_exception ); 226 229 printf("UNWIND ERROR %d after force unwind\n", ret); 230 write( 2, "abort3\n", 7 ); 227 231 abort(); 228 232 } … … 246 250 if ( NULL == context->current_exception ) { 247 251 printf("UNWIND ERROR missing exception in begin unwind\n"); 252 write( 2, "abort4\n", 7 ); 248 253 abort(); 249 254 } … … 271 276 #endif 272 277 printf("UNWIND ERROR %d after raise exception\n", ret); 278 write( 2, "abort5\n", 7 ); 273 279 abort(); 274 280 } … … 292 298 // TODO: Print some error message. 293 299 (void)except; 300 write( 2, "abort6\n", 7 ); 294 301 abort(); 295 302 } … … 299 306 300 307 __cfaehm_begin_unwind( __cfaehm_rethrow_adapter ); 308 write( 2, "abort7\n", 7 ); 301 309 abort(); 302 310 }
Note:
See TracChangeset
for help on using the changeset viewer.