1993-03-23 09:19:58 +08:00
|
|
|
/* Target definitions for GDB on an Altos 3068 (m68k running SVR2)
|
|
|
|
Copyright 1987, 1989, 1991, 1993 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
|
More gcc lint:
* exec.c (ignore): Return 0.
* stack.c (return_command): Fetch lazy value directly, not via
VALUE_CONTENTS, to avoid "value computed is not used".
* inflow.c (new_tty): Move osigttou inside #if.
* remote.c (remote_fetch_registers): If remote reply is short, just
note that fact and keep going (reading extra registers as all bits 0).
(remote_store_registers): Send number of registers that were found
by remote_fetch_registers.
* m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
floating registers.
* config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
* Makefile.in, configure.in: Change accordingly.
1993-09-10 02:33:44 +08:00
|
|
|
/* The child target can't deal with floating registers. */
|
|
|
|
#define CANNOT_STORE_REGISTER(regno) ((regno) >= FP0_REGNUM)
|
|
|
|
|
1993-03-23 09:19:58 +08:00
|
|
|
/* Define BPT_VECTOR if it is different than the default.
|
|
|
|
This is the vector number used by traps to indicate a breakpoint. */
|
|
|
|
|
|
|
|
#define BPT_VECTOR 0xe
|
|
|
|
|
|
|
|
/* Address of end of stack space. */
|
|
|
|
|
|
|
|
/*#define STACK_END_ADDR (0xffffff)*/
|
|
|
|
#define STACK_END_ADDR (0x1000000)
|
|
|
|
|
|
|
|
/* Amount PC must be decremented by after a breakpoint.
|
|
|
|
On the Altos, the kernel resets the pc to the trap instr */
|
|
|
|
|
|
|
|
#define DECR_PC_AFTER_BREAK 0
|
|
|
|
|
|
|
|
/* The only reason this is here is the tm-altos.h reference below. It
|
* config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
* m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
instead of tm-68k.h.
* Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
* README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
* a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
tm-68k.h to tm-m68k.h.
* m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
* m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
tm-m68k-nofp.h.
1993-03-30 08:33:44 +08:00
|
|
|
was moved back here from tm-m68k.h. FIXME? */
|
1993-03-23 09:19:58 +08:00
|
|
|
|
|
|
|
#define SKIP_PROLOGUE(pc) \
|
|
|
|
{ register int op = read_memory_integer (pc, 2); \
|
|
|
|
if (op == 0047126) \
|
|
|
|
pc += 4; /* Skip link #word */ \
|
|
|
|
else if (op == 0044016) \
|
|
|
|
pc += 6; /* Skip link #long */ \
|
|
|
|
/* Not sure why branches are here. */ \
|
|
|
|
/* From tm-isi.h, tm-altos.h */ \
|
|
|
|
else if (op == 0060000) \
|
|
|
|
pc += 4; /* Skip bra #word */ \
|
|
|
|
else if (op == 00600377) \
|
|
|
|
pc += 6; /* skip bra #long */ \
|
|
|
|
else if ((op & 0177400) == 0060000) \
|
|
|
|
pc += 2; /* skip bra #char */ \
|
|
|
|
}
|
|
|
|
|
* config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
* m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
instead of tm-68k.h.
* Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
* README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
* a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
tm-68k.h to tm-m68k.h.
* m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
* m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
tm-m68k-nofp.h.
1993-03-30 08:33:44 +08:00
|
|
|
#include "m68k/tm-m68k.h"
|