Lines 79-89
Link Here
|
79 |
fprintf(fh, "info.si_code = %d (%s)\n", info->si_code, si_codes[info->si_code]); |
79 |
fprintf(fh, "info.si_code = %d (%s)\n", info->si_code, si_codes[info->si_code]); |
80 |
fprintf(fh, "info.si_addr = %p\n", info->si_addr); |
80 |
fprintf(fh, "info.si_addr = %p\n", info->si_addr); |
81 |
// NGREG not defined on Mac OS X... |
81 |
// NGREG not defined on Mac OS X... |
82 |
#ifndef __APPLE__ |
82 |
#if defined(SIGSEGV_STACK_GENERIC) |
|
|
83 |
fprintf(fh, "NGREG Not available with the generic stack code.\n"); |
84 |
#elif defined(__APPLE__) |
85 |
fprintf(fh, "NGREG Not available on Mac OS X.\n"); |
86 |
#else |
83 |
for(i = 0; i < NGREG; i++) |
87 |
for(i = 0; i < NGREG; i++) |
84 |
fprintf(fh, "reg[%02d] = 0x" REGFORMAT "\n", i, ucontext->uc_mcontext.gregs[i]); |
88 |
fprintf(fh, "reg[%02d] = 0x" REGFORMAT "\n", i, ucontext->uc_mcontext.gregs[i]); |
85 |
#else |
|
|
86 |
fprintf(fh, "NGREG Not available on Mac OS X.\n"); |
87 |
#endif |
89 |
#endif |
88 |
|
90 |
|
89 |
#if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) |
91 |
#if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) |