/* Parameters for targe of a Gould Powernode, for GDB, the GNU debugger.
- Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
+ Copyright (C) 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
This file is part of GDB.
of external names before giving them to the linker. */
#define NAMES_HAVE_UNDERSCORE
-/* Debugger information will be in DBX format. */
-#define READ_DBX_FORMAT
-
/* Offset from address of function to start of its code.
Zero on most machines. */
#define FUNCTION_START_OFFSET 4
#define PS_REGNUM 17 /* Contains processor status */
#define PC_REGNUM 18 /* Contains program counter */
-/* This is a piece of magic that is given a register number REGNO
- and as BLOCKEND the address in the system of the end of the user structure
- and stores in ADDR the address in the kernel or core dump
- of that register. */
-#define REGISTER_U_ADDR(addr, blockend, regno) { \
- addr = blockend + regno * 4; \
- if (regno == PC_REGNUM) addr = blockend - 8 * 4; \
- if (regno == PS_REGNUM) addr = blockend - 7 * 4; \
- if (regno == SP_REGNUM) addr = blockend - 6 * 4; \
-}
-
/* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */
#define REGISTER_BYTES (NUM_GEN_REGS*4 + NUM_CPU_REGS*4)
/* FRAME_CHAIN takes a frame's nominal address
and produces the frame's chain-pointer.
- FRAME_CHAIN_COMBINE takes the chain pointer and the frame's nominal address
- and produces the nominal address of the caller frame.
-
However, if FRAME_CHAIN_VALID returns zero,
- it means the given frame is the outermost one and has no caller.
- In that case, FRAME_CHAIN_COMBINE is not used. */
+ it means the given frame is the outermost one and has no caller. */
/* In the case of the NPL, the frame's norminal address is Br2 and the
previous routines frame is up the stack X bytes, where X is the
#define FRAME_CHAIN_VALID(chain, thisframe) \
(chain != 0 && chain != (thisframe)->frame)
-#define FRAME_CHAIN_COMBINE(chain, thisframe) \
- (chain)
-
/* Define other aspects of the stack frame on NPL. */
#define FRAME_SAVED_PC(frame) \
(read_memory_integer ((frame)->frame + 8, 4))
Setup our stack frame, load argumemts, call and then restore registers.
*/
+/* FIXME: The below defines an m68k CALL_DUMMY, which looks nothing like what
+ is documented above. */
+
#define CALL_DUMMY {0xf227e0ff, 0x48e7fffc, 0x426742e7, 0x4eb93232, 0x3232dffc, 0x69696969, 0x4e4f4e71}
#define CALL_DUMMY_LENGTH 28