* config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
authorMark Alexander <marka@cygnus>
Wed, 27 Nov 1996 03:40:28 +0000 (03:40 +0000)
committerMark Alexander <marka@cygnus>
Wed, 27 Nov 1996 03:40:28 +0000 (03:40 +0000)
(mips_addr_bits_remove): Declare.

gdb/config/mips/tm-mips.h

index 83f2f1ddd35f371e9a60b493134ac879381e170f..2bb0486d351fb338f9be4b0f08e9a9f4bc5d2271 100644 (file)
@@ -68,6 +68,15 @@ extern enum mips_fpu_type mips_fpu;
 
 #define DEFAULT_MIPS_TYPE "generic"
 
+/* Remove useless bits from an instruction address.  */
+
+#define ADDR_BITS_REMOVE(addr) mips_addr_bits_remove(addr)
+CORE_ADDR mips_addr_bits_remove PARAMS ((CORE_ADDR addr));
+
+/* Remove useless bits from the stack pointer.  */
+
+#define TARGET_READ_SP() ADDR_BITS_REMOVE (read_register (SP_REGNUM))
+
 /* Offset from address of function to start of its code.
    Zero on most machines.  */
 
This page took 0.025036 seconds and 4 git commands to generate.