Changeset 13766
- Timestamp:
- Jun 1, 2010, 5:43:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/lisp-debug.c
r13765 r13766 300 300 dsisr & (1<<27) ? "protected" : "unmapped", 301 301 addr); 302 #else 303 fprintf(dbgout, "received signal %d; faulting address: %p\n", 304 info->si_signo, info->si_addr); 305 if (info->si_code > 0) { 306 if (info->si_signo == SIGSEGV) { 307 switch (info->si_code) { 308 case SEGV_MAPERR: 309 fprintf(dbgout, "address not mapped to object\n"); 310 break; 311 case SEGV_ACCERR: 312 fprintf(dbgout, "invalid permissions for mapped object\n"); 313 break; 314 default: 315 fprintf(dbgout, "unexpected si_code value: %d\n", info->si_code); 316 break; 317 } 318 } else if (info->si_signo == SIGBUS) { 319 switch (info->si_code) { 320 case BUS_ADRALN: 321 fprintf(dbgout, "invalid address alignment\n"); 322 break; 323 case BUS_ADRERR: 324 fprintf(dbgout, "non-existent physical address"); 325 break; 326 case BUS_OBJERR: 327 fprintf(dbgout, "object-specific hardware error"); 328 break; 329 default: 330 fprintf(dbgout, "unexpected si_code value: %d\n", info->si_code); 331 } 332 } 333 } 302 334 #endif 303 335 } … … 645 677 break; 646 678 } 679 #else 680 switch (arg) { 681 case SIGSEGV: 682 case SIGBUS: 683 describe_memfault(xp, info); 684 break; 685 default: 686 break; 687 } 647 688 #endif 648 689 return debug_continue; … … 1034 1075 NULL, 1035 1076 'A'}, 1077 #endif 1036 1078 {debug_identify_exception, 1037 1079 "Describe the current exception in greater detail", … … 1040 1082 NULL, 1041 1083 'D'}, 1042 #endif1043 1084 {debug_show_registers, 1044 1085 "Show raw GPR/SPR register values", … … 1235 1276 debug_show_fpu(xp, info, 0); 1236 1277 } 1278 debug_memory_areas(xp, info, 0); 1237 1279 debug_backtrace(xp, info, 0); 1238 1280
Note: See TracChangeset
for help on using the changeset viewer.