* Makefile.in (LIBCOMMON): Define.
[deliverable/binutils-gdb.git] / gdb / i386b-nat.c
index bb78d7288dd18a42a7a2ac71561c70334b95b181..938b599caba6632c49ddcc0f556aa3c124cf8f0f 100644 (file)
@@ -57,7 +57,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
      char *core_reg_sect;
      unsigned core_reg_size;
      int which;
-     unsigned int ignore;
+     CORE_ADDR ignore;
 {
   struct md_core *core_reg = (struct md_core *)core_reg_sect;
 
@@ -81,12 +81,25 @@ static int tregmap[] =
   tEIP, tEFLAGS, tCS, tSS
 };
 
+#ifdef sEAX
 static int sregmap[] = 
 {
   sEAX, sECX, sEDX, sEBX,
   sESP, sEBP, sESI, sEDI,
   sEIP, sEFLAGS, sCS, sSS
 };
+#else /* No sEAX */
+
+/* FreeBSD has decided to collapse the s* and t* symbols.  So if the s*
+   ones aren't around, use the t* ones for sregmap too.  */
+
+static int sregmap[] = 
+{
+  tEAX, tECX, tEDX, tEBX,
+  tESP, tEBP, tESI, tEDI,
+  tEIP, tEFLAGS, tCS, tSS
+};
+#endif /* No sEAX */
 
 /* blockend is the value of u.u_ar0, and points to the
    place where ES is stored.  */
This page took 0.024569 seconds and 4 git commands to generate.