Changeset 15600


Ignore:
Timestamp:
Jan 20, 2013, 11:16:58 PM (6 years ago)
Author:
gb
Message:

In describe_memfault(), recognize that an 'int $n' instruction may
have caused the exception on x86.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisp-debug.c

    r15093 r15600  
    413413#elif !defined(WINDOWS)
    414414  if (info) {
     415#ifdef X86
     416    if ((info->si_signo == SIGNUM_FOR_INTN_TRAP) &&
     417        IS_MAYBE_INT_TRAP(info, xp)) {
     418      pc program_counter = (pc)xpPC(xp);
     419
     420      if ((program_counter != NULL) &&
     421          (*program_counter == INTN_OPCODE)) {
     422        fprintf(dbgout, "unhandled int 0x%x instruction", program_counter[1]);
     423      }
     424      return;
     425    }
     426#endif
    415427    fprintf(dbgout, "received signal %d; faulting address: %p\n",
    416428            info->si_signo, info->si_addr);
Note: See TracChangeset for help on using the changeset viewer.