aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-12-04 01:26:05 +0000
committerJohn Gilmore <gnu@cygnus>1991-12-04 01:26:05 +0000
commit2e00f40a385a94838f7d74c508cedc7975463a22 (patch)
tree64f274a5ed6c6f3dc8871a7ee151926436325b68 /gdb
parentf7c1f9e194ae4f38bc1efd8de7a0d8b4d9d42031 (diff)
downloadgdb-2e00f40a385a94838f7d74c508cedc7975463a22.zip
gdb-2e00f40a385a94838f7d74c508cedc7975463a22.tar.gz
gdb-2e00f40a385a94838f7d74c508cedc7975463a22.tar.bz2
Make it compile for cross-debugging.
Diffstat (limited to 'gdb')
-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>