* alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 26 Apr 2007 00:13:12 +0000 (00:13 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 26 Apr 2007 00:13:12 +0000 (00:13 +0000)
commitb02f9d57327dbea7322242fb23f3040d5376acec
tree5e2d91e23bed37883ef76f62576ce26429ec4661
parent4aee06340450257664f7d8300c6eb9b0bb43fd5f
* alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
and "regcache.h".
(alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
(alpha_linux_gregset, alpha_linux_fpregset): New variables.
(alpha_linux_regset_from_core_section): New function.
(alpha_linux_init_abi): Install it.
* alpha-linux-nat.c: Do not include "gdbcore.h".  Include
"alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
<sys/procfs.h>, and "gregset.h".
(ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
Move from config/alpha/nm-linux.h.
(supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
from alpha-nat.c.
(alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
* alpha-nat.c: Remove #ifdef __linux__ section.
(fetch_elf_core_registers, alpha_elf_core_fns): Remove.
(_initialize_core_alpha): Do not register alpha_elf_core_fns.
(ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
(ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
* config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
(NATDEPFILES): Remove alpha-nat.o.
* config/alpha/nm-linux.h: Delete file.
* config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
* Makefile.in (alpha-linux-nat.o): Update dependencies.
(alpha-linux-tdep.o): Likewise.
gdb/ChangeLog
gdb/Makefile.in
gdb/alpha-linux-nat.c
gdb/alpha-linux-tdep.c
gdb/alpha-nat.c
gdb/config/alpha/alpha-linux.mh
gdb/config/alpha/nm-linux.h [deleted file]
gdb/config/alpha/nm-osf.h