Changeset 5274
- Timestamp:
- Sep 27, 2006, 4:41:23 AM (18 years ago)
- Location:
- trunk/ccl/lisp-kernel
- Files:
-
- 2 edited
-
x86-exceptions.c (modified) (2 diffs)
-
x86-exceptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/lisp-kernel/x86-exceptions.c
r5240 r5274 628 628 629 629 #endif 630 631 void 632 get_lisp_string(LispObj lisp_string, char *c_string, natural max) 633 { 634 lisp_char_code *src = (lisp_char_code *) (ptr_from_lispobj(lisp_string + misc_data_offset)); 635 natural i, n = header_element_count(header_of(lisp_string)); 636 637 if (n > max) { 638 n = max; 639 } 640 641 for (i = 0; i < n; i++) { 642 c_string[i] = 0xff & (src[i]); 643 } 644 c_string[n] = 0; 645 } 630 646 631 647 Boolean … … 661 677 xpPC(context) = (natural) (program_counter+1); 662 678 lisp_Debugger(context, info, debug_entry_dbg, "Lisp Breakpoint"); 679 return true; 680 681 case UUO_DEBUG_TRAP_WITH_STRING: 682 xpPC(context) = (natural) (program_counter+1); 683 { 684 char msg[512]; 685 686 get_lisp_string(xpGPR(context,Iarg_z),msg, sizeof(msg)-1); 687 lisp_Debugger(context, info, debug_entry_dbg, msg); 688 } 663 689 return true; 664 690 -
trunk/ccl/lisp-kernel/x86-exceptions.h
r5033 r5274 92 92 #define UUO_ALLOC_TRAP 0xc5 93 93 #define UUO_DEBUG_TRAP 0xca 94 #define UUO_DEBUG_TRAP_WITH_STRING 0xcd 94 95 95 96 #define XUUO_OPCODE_0 0x0f
Note:
See TracChangeset
for help on using the changeset viewer.
