Changeset 7657 for branches


Ignore:
Timestamp:
Nov 15, 2007, 4:25:36 PM (17 years ago)
Author:
Gary Byers
Message:

lisp_Debugger takes an "in_foreign_code" arg, rather than trying to set
a bit in a (possibly signed) integer.

Location:
branches/working-0711/ccl/lisp-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/lisp-kernel/ppc-exceptions.c

    r7629 r7657  
    15531553        message = "Lisp Breakpoint";
    15541554      }
    1555       lisp_Debugger(xp, info, debug_entry_dbg, message);
     1555      lisp_Debugger(xp, info, debug_entry_dbg, false, message);
    15561556      return noErr;
    15571557    }
    15581558    if (the_trap == QUIET_LISP_BREAK_INSTRUCTION) {
    15591559      adjust_exception_pc(xp,4);
    1560       lisp_Debugger(xp, info, debug_entry_dbg, "Lisp Breakpoint");
     1560      lisp_Debugger(xp, info, debug_entry_dbg, false, "Lisp Breakpoint");
    15611561      return noErr;
    15621562    }
     
    17741774    char msg[512];
    17751775    snprintf(msg, sizeof(msg), "Unhandled exception %d at 0x%lx, context->regs at #x%lx", signum, xpPC(context), (natural)xpGPRvector(context));
    1776     if (lisp_Debugger(context, info, signum, msg)) {
     1776    if (lisp_Debugger(context, info, signum, false, msg)) {
    17771777      SET_TCR_FLAG(tcr,TCR_FLAG_BIT_PROPAGATE_EXCEPTION);
    17781778    }
  • branches/working-0711/ccl/lisp-kernel/x86-exceptions.c

    r7624 r7657  
    790790        case UUO_DEBUG_TRAP:
    791791          xpPC(context) = (natural) (program_counter+1);
    792           lisp_Debugger(context, info, debug_entry_dbg, "Lisp Breakpoint");
     792          lisp_Debugger(context, info, debug_entry_dbg, false, "Lisp Breakpoint");
    793793          return true;
    794794
     
    799799
    800800            get_lisp_string(xpGPR(context,Iarg_z),msg, sizeof(msg)-1);
    801             lisp_Debugger(context, info, debug_entry_dbg, msg);
     801            lisp_Debugger(context, info, debug_entry_dbg, false, msg);
    802802          }
    803803          return true;
     
    975975  if (! handle_exception(signum, info, context, tcr, old_valence)) {
    976976    char msg[512];
    977     int foreign = (old_valence == TCR_STATE_LISP) ? 0 : debug_foreign_exception;
     977    Boolean foreign = (old_valence != TCR_STATE_LISP);
    978978
    979979    snprintf(msg, sizeof(msg), "Unhandled exception %d at 0x%lx, context->regs at #x%lx", signum, xpPC(context), (natural)xpGPRvector(context));
    980980   
    981     if (lisp_Debugger(context, info, signum | foreign, msg)) {
     981    if (lisp_Debugger(context, info, signum, foreign, msg)) {
    982982      SET_TCR_FLAG(tcr,TCR_FLAG_BIT_PROPAGATE_EXCEPTION);
    983983    }
Note: See TracChangeset for help on using the changeset viewer.