diff options
Diffstat (limited to 'gdb/sun3-xdep.c')
-rw-r--r-- | gdb/sun3-xdep.c | 25 |
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. */ |