a9333fb665245a868512838a824423b51298b662
14 /* Get the registers out of the frame information. */
17 frame_to_registers (frame
, regs
)
18 struct StackFrame
*frame
;
22 mem2hex (&frame
->ExceptionEAX
, ®s
[0 * 4 * 2], 4 * 8, 0);
25 mem2hex (&frame
->ExceptionPC
, ®s
[8 * 4 * 2], 4 * 2, 0);
28 mem2hex (&frame
->ExceptionCS
, ®s
[10 * 4 * 2], 4 * 3, 0);
31 mem2hex (&frame
->ExceptionES
, ®s
[13 * 4 * 2], 4 * 1, 0);
34 mem2hex (&frame
->ExceptionFS
, ®s
[14 * 4 * 2], 4 * 2, 0);
37 /* Put the registers back into the frame information. */
40 registers_to_frame (regs
, frame
)
42 struct StackFrame
*frame
;
45 hex2mem (®s
[0 * 4 * 2], &frame
->ExceptionEAX
, 4 * 8, 0);
48 hex2mem (®s
[8 * 4 * 2], &frame
->ExceptionPC
, 4 * 2, 0);
51 hex2mem (®s
[10 * 4 * 2], &frame
->ExceptionCS
, 4 * 3, 0);
54 hex2mem (®s
[13 * 4 * 2], &frame
->ExceptionES
, 4 * 1, 0);
57 hex2mem (®s
[14 * 4 * 2], &frame
->ExceptionFS
, 4 * 2, 0);
61 set_step_traps (frame
)
62 struct StackFrame
*frame
;
64 frame
->ExceptionSystemFlags
|= 0x100;
68 clear_step_traps (frame
)
69 struct StackFrame
*frame
;
71 frame
->ExceptionSystemFlags
&= ~0x100;
75 do_status (ptr
, frame
)
77 struct StackFrame
*frame
;
81 sigval
= computeSignal (frame
->ExceptionNumber
);
83 sprintf (ptr
, "T%02x", sigval
);
86 sprintf (ptr
, "%02x:", PC_REGNUM
);
87 ptr
= mem2hex (&frame
->ExceptionPC
, ptr
+ 3, 4, 0);
90 sprintf (ptr
, "%02x:", SP_REGNUM
);
91 ptr
= mem2hex (&frame
->ExceptionESP
, ptr
+ 3, 4, 0);
94 sprintf (ptr
, "%02x:", FP_REGNUM
);
95 ptr
= mem2hex (&frame
->ExceptionEBP
, ptr
+ 3, 4, 0);