diff options
author | Fred Fish <fnf@specifix.com> | 1991-10-25 06:29:23 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1991-10-25 06:29:23 +0000 |
commit | 84d82b1ccde63f3847e3e413e014024895c288d1 (patch) | |
tree | 084c6b9c4f4fbaafe685ba3e9c7524c77899280f /gdb/tm-amix.h | |
parent | ed317bb309d40570cbb047d431a4e93659257934 (diff) | |
download | gdb-84d82b1ccde63f3847e3e413e014024895c288d1.zip gdb-84d82b1ccde63f3847e3e413e014024895c288d1.tar.gz gdb-84d82b1ccde63f3847e3e413e014024895c288d1.tar.bz2 |
Remove locally duplicated code for calling functions in the inferior. The
only differences were in the specific trap vectors used and whether or not
an fpu was present. These are now handled by appropriate definitions of
BPT_VECTOR and HAVE_68881 respectively. Other minor obvious cleanups.
Minor spelling correction in valops.c.
Diffstat (limited to 'gdb/tm-amix.h')
-rw-r--r-- | gdb/tm-amix.h | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/gdb/tm-amix.h b/gdb/tm-amix.h index 056bd82..635d3b3 100644 --- a/gdb/tm-amix.h +++ b/gdb/tm-amix.h @@ -21,36 +21,27 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* All Amiga's (so far) running UNIX have come standard with the floating point coprocessor. */ -#define HAVE_68881 /* Amiga has floating point coprocessor */ +#define HAVE_68881 -/* Sequence of bytes for breakpoint instruction. - This is a TRAP instruction. The last 4 bits (0x1 below) is the - vector. */ +/* Define BPT_VECTOR if it is different than the default. + This is the vector number used by traps to indicate a breakpoint. */ -#define BREAKPOINT {0x4e, 0x41 } /* Trap using vector 0x1 */ +#define BPT_VECTOR 0x1 /* How much to decrement the PC after a trap. Depends on kernel. */ #define DECR_PC_AFTER_BREAK 0 /* No decrement required */ - -#include "tm-68k.h" -#include "tm-svr4.h" - -/* Address of end of stack space. (actually one byte past it). +/* Address of end of stack space. Actually one byte past it. This value is typically very OS dependent. FIXME: Check to see if SVR4 offers some machine independent way of discovering this value and use it if so, and if we need it. */ /* #define STACK_END_ADDR 0xc0800000 */ -/* Use the alternate method of avoiding running up off the end of - the frame chain or following frames back into the startup code. - See the comments in blockframe.c */ - -#undef FRAME_CHAIN_VALID -#define FRAME_CHAIN_VALID(chain, thisframe) \ - (chain != 0 \ - && !(inside_main_scope ((thisframe)->pc)) \ - && !(inside_entry_scope ((thisframe)->pc))) +/* Use the alternate method of determining valid frame chains. */ +#define FRAME_CHAIN_VALID_ALTERNATE + +#include "tm-svr4.h" +#include "tm-68k.h" |