aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppab-nat.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-06-03 23:44:24 +0000
committerStu Grossman <grossman@cygnus>1993-06-03 23:44:24 +0000
commite835b5e7fa8a12d8da88917b038b30af9a39ec7d (patch)
tree029c61974161dc04ed1452fef65a192ec8674cad /gdb/hppab-nat.c
parent42d83993823e833e380d7eaaebaecd3a8a68ef4e (diff)
downloadgdb-e835b5e7fa8a12d8da88917b038b30af9a39ec7d.zip
gdb-e835b5e7fa8a12d8da88917b038b30af9a39ec7d.tar.gz
gdb-e835b5e7fa8a12d8da88917b038b30af9a39ec7d.tar.bz2
* Patches from Jeffrey Law <law@cs.utah.edu>.
* hppab-nat.c: Eliminate unnecessary ifdefs for FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and CANNOT_STORE_REGISTER. (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER. * hppa-pinsn.c: Support 'I', 'J', and 'K' in output templates for 1.1 FP computational instructions.
Diffstat (limited to 'gdb/hppab-nat.c')
-rw-r--r--gdb/hppab-nat.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c
index 3d2ca97..615b665 100644
--- a/gdb/hppab-nat.c
+++ b/gdb/hppab-nat.c
@@ -104,8 +104,6 @@ detach (signal)
-#if !defined (FETCH_INFERIOR_REGISTERS)
-
/* KERNEL_U_ADDR is the amount to subtract from u.u_ar0
to get the offset in the core file of the register values. */
#if defined (KERNEL_U_ADDR_BSD)
@@ -163,11 +161,6 @@ void _initialize_kernel_u_addr ()
- KERNEL_U_ADDR
#endif
-/* Registers we shouldn't try to fetch. */
-#if !defined (CANNOT_FETCH_REGISTER)
-#define CANNOT_FETCH_REGISTER(regno) 0
-#endif
-
/* Fetch one register. */
static void
@@ -182,13 +175,6 @@ fetch_register (regno)
/* Offset of registers within the u area. */
unsigned int offset;
- if (CANNOT_FETCH_REGISTER (regno))
- {
- bzero (buf, REGISTER_RAW_SIZE (regno)); /* Supply zeroes */
- supply_register (regno, buf);
- return;
- }
-
offset = U_REGS_OFFSET;
regaddr = register_addr (regno, offset);
@@ -207,10 +193,8 @@ fetch_register (regno)
supply_register (regno, buf);
}
-#endif /* !defined (FETCH_INFERIOR_REGISTERS). */
/* Fetch all registers, or just one, from the child process. */
-#ifndef FETCH_INFERIOR_REGISTERS
void
fetch_inferior_registers (regno)
int regno;
@@ -222,11 +206,6 @@ fetch_inferior_registers (regno)
fetch_register (regno);
}
-/* Registers we shouldn't try to store. */
-#if !defined (CANNOT_STORE_REGISTER)
-#define CANNOT_STORE_REGISTER(regno) 0
-#endif
-
/* Store our register values back into the inferior.
If REGNO is -1, do this for all registers.
Otherwise, REGNO specifies which register (so we can save time). */
@@ -281,7 +260,6 @@ store_inferior_registers (regno)
}
return;
}
-#endif /* !defined(FETCH_INFERIOR_REGISTERS) */
/* Resume execution of the inferior process.
If STEP is nonzero, single-step it.