* i386bsd-nat.c: Update copyright year. Don't include
[deliverable/binutils-gdb.git] / gdb / nlm / i386.c
index a9333fb665245a868512838a824423b51298b662..8fc6b1dd01ba5ae4f59cf6f2d5a44d5bfc7644bf 100644 (file)
 #include <errno.h>
 #include "i386.h"
 
+extern char *mem2hex (void *mem, char *buf, int count, int may_fault);
+extern char *hex2mem (char *buf, void *mem, int count, int may_fault);
+extern int computeSignal (int exceptionVector);
+
+void
+flush_i_cache (void)
+{
+}
+
 /* Get the registers out of the frame information.  */
 
-static void
-frame_to_registers (frame, regs)
-     struct StackFrame *frame;
-     char *regs;
+void
+frame_to_registers (struct StackFrame *frame, char *regs)
 {
   /* Copy EAX -> EDI */
   mem2hex (&frame->ExceptionEAX, &regs[0 * 4 * 2], 4 * 8, 0);
@@ -36,10 +43,8 @@ frame_to_registers (frame, regs)
 
 /* Put the registers back into the frame information.  */
 
-static void
-registers_to_frame (regs, frame)
-     char *regs;
-     struct StackFrame *frame;
+void
+registers_to_frame (char *regs, struct StackFrame *frame)
 {
   /* Copy EAX -> EDI */
   hex2mem (&regs[0 * 4 * 2], &frame->ExceptionEAX, 4 * 8, 0);
@@ -57,24 +62,20 @@ registers_to_frame (regs, frame)
   hex2mem (&regs[14 * 4 * 2], &frame->ExceptionFS, 4 * 2, 0);
 }
 
-static void
-set_step_traps (frame)
-     struct StackFrame *frame;
+void
+set_step_traps (struct StackFrame *frame)
 {
   frame->ExceptionSystemFlags |= 0x100;
 }
 
-static void
-clear_step_traps (frame)
-     struct StackFrame *frame;
+void
+clear_step_traps (struct StackFrame *frame)
 {
   frame->ExceptionSystemFlags &= ~0x100;
 }
 
-static void
-do_status (ptr, frame)
-     char *ptr;
-     struct StackFrame *frame;
+void
+do_status (char *ptr, struct StackFrame *frame)
 {
   int sigval;
 
@@ -91,7 +92,7 @@ do_status (ptr, frame)
   ptr = mem2hex (&frame->ExceptionESP, ptr + 3, 4, 0);
   *ptr++ = ';';
 
-  sprintf (ptr, "%02x:", FP_REGNUM);
+  sprintf (ptr, "%02x:", DEPRECATED_FP_REGNUM);
   ptr = mem2hex (&frame->ExceptionEBP, ptr + 3, 4, 0);
   *ptr++ = ';';
 
This page took 0.024653 seconds and 4 git commands to generate.