aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sparc-xdep.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e527525..656e54d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Tue Dec 3 17:24:57 1991 John Gilmore (gnu at cygnus.com)
+
+ * sparc-xdep.c: Force tm-file as tm-sparc.h, to make it compile
+ when configured for cross debugging. FIXME, this needs a more
+ general solution.
+
Mon Dec 2 11:04:05 1991 Per Bothner (bothner at cygnus.com)
* mips-tdep.c (init_extra_frame_info): Float register
diff --git a/gdb/sparc-xdep.c b/gdb/sparc-xdep.c
index 003829e..e85caac 100644
--- a/gdb/sparc-xdep.c
+++ b/gdb/sparc-xdep.c
@@ -18,13 +18,17 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdio.h>
+
+/* This code only compiles when we have the definitions in tm-sparc.h. */
+
+#define TM_FILE_OVERRIDE
#include "defs.h"
+#include "tm-sparc.h"
+
#include "inferior.h"
#include "target.h"
#include <sys/param.h>
-#include <sys/file.h> /* For L_SET */
-
#include <sys/ptrace.h>
#include <machine/reg.h>