summaryrefslogtreecommitdiff
path: root/gdb/config/i386
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-11-09 21:31:12 +0000
committerMark Kettenis <kettenis@gnu.org>2002-11-09 21:31:12 +0000
commitcf432226c9797a3321a3930dd79194a010e90b64 (patch)
tree8fc6ee2fc99c0901fc036cd94f3bceb82e921b46 /gdb/config/i386
parentf6c7e414527f7e4a69c92da5384607e65911362f (diff)
downloadgdb-cf432226c9797a3321a3930dd79194a010e90b64.tar.gz
* i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
defined. (regmap): Extend to cover all registers. (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE, OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove definitions. (fetch_register, sore_register): Simplify. (old_fetch_inferior_registers, old_store_inferior_registers): Remove functions. (cannot_fetch_register, cannot_store_register): Change implementation to use regmap array to decide which registers cannot be fetched/stored. This removes $orig_eax from the registers that cannot be fetched/stored. (fetch_inferior_registers): Call fetch_register directly instead of calling old_fetch_inferior_registers. (store_inferior_registers): Call store_register directly instead of calling old_store_inferior_registers. (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER. (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER. * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
Diffstat (limited to 'gdb/config/i386')
-rw-r--r--gdb/config/i386/nm-linux.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h
index 073c3a3986e..ad57124e88c 100644
--- a/gdb/config/i386/nm-linux.h
+++ b/gdb/config/i386/nm-linux.h
@@ -39,9 +39,6 @@ extern int kernel_u_size (void);
the core file of the register values. */
#define KERNEL_U_ADDR 0
-/* Offset of the registers within the user area. */
-#define U_REGS_OFFSET 0
-
extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum);
#define REGISTER_U_ADDR(addr, blockend, regnum) \
(addr) = register_u_addr (blockend, regnum)