diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-10 21:36:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-05-10 21:36:00 +0000 |
commit | 7714d83ad4327316699302e187c28d5c79eccab3 (patch) | |
tree | 603a6c1fb2cda65729295554a975e8312822140b /gdb/inf-ptrace.h | |
parent | dd6953e1f3ca7a60bbb1631d7b1821ebeefcccee (diff) | |
download | gdb-7714d83ad4327316699302e187c28d5c79eccab3.zip gdb-7714d83ad4327316699302e187c28d5c79eccab3.tar.gz gdb-7714d83ad4327316699302e187c28d5c79eccab3.tar.bz2 |
* inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
(inf_ptrace_fetch_register): Add register_u_offset callback parameters
GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
(inf_ptrace_store_register): Likewise.
(inf_ptrace_trad_target): Adapt register_u_offset parameter list.
* inf-ptrace.h (inf_ptrace_trad_target): Likewise.
* vax-nat.c (vax_register_u_offset): Adapt parameter list.
* linux-nat.c (linux_trad_target): Adapt parameter list.
* linux-nat.h (linux_trad_target): Likewise.
* alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
* mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
(mips_linux_cannot_store_register): Likewise.
(mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
Return (CORE_ADDR) -1 for registers that cannot be fetched or
stored via ptrace. Use GDBARCH instead of current_gdbarch.
(mips64_linux_register_addr): Likewise.
(mips_linux_register_u_offset): Adapt parameter list. Pass
GDBARCH and STORE_P on to mips{64}_linux_register_addr.
* config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
* config/mips/nm-linux.h: Delete file.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r-- | gdb/inf-ptrace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index 4860bcb..b74ff20 100644 --- a/gdb/inf-ptrace.h +++ b/gdb/inf-ptrace.h @@ -32,6 +32,7 @@ extern struct target_ops *inf_ptrace_target (void); particular register is stored. */ extern struct target_ops * - inf_ptrace_trad_target (CORE_ADDR (*register_u_offset)(int)); + inf_ptrace_trad_target (CORE_ADDR (*register_u_offset) + (struct gdbarch *, int, int)); #endif |