aboutsummaryrefslogtreecommitdiff
path: root/gdb/sun3-xdep.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-23 01:11:11 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-23 01:11:11 +0000
commit9a822037b10afc6540f4199017af0e728c8e68eb (patch)
tree09b503b73693cb368d7fc48877359eb47dd0d902 /gdb/sun3-xdep.c
parent25a40b004d02d2a3204d4aadba723f2e37fbc1d0 (diff)
downloadgdb-9a822037b10afc6540f4199017af0e728c8e68eb.zip
gdb-9a822037b10afc6540f4199017af0e728c8e68eb.tar.gz
gdb-9a822037b10afc6540f4199017af0e728c8e68eb.tar.bz2
*** empty log message ***
Diffstat (limited to 'gdb/sun3-xdep.c')
-rw-r--r--gdb/sun3-xdep.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/sun3-xdep.c b/gdb/sun3-xdep.c
index bf0739e..6090dc4 100644
--- a/gdb/sun3-xdep.c
+++ b/gdb/sun3-xdep.c
@@ -31,6 +31,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
extern int errno;
+#if defined (TARGET_SUN3)
+/* All of this stuff is only relevant if both host and target are sun3. */
void
fetch_inferior_registers ()
{
@@ -133,3 +135,26 @@ fetch_core_registers (core_reg_sect, core_reg_size, which)
fprintf (stderr, "Couldn't read float regs from core file\n");
}
}
+#else /* Not sun3 target. */
+/* These functions shouldn't be called when we're cross-debugging. */
+
+void
+fetch_inferior_registers ()
+{
+}
+
+/* ARGSUSED */
+store_inferior_registers (regno)
+ int regno;
+{
+}
+
+/* ARGSUSED */
+void
+fetch_core_registers (core_reg_sect, core_reg_size, which)
+ char *core_reg_sect;
+ unsigned core_reg_size;
+ int which;
+{
+}
+#endif /* Not sun3 target. */