diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-26 00:13:12 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-26 00:13:12 +0000 |
commit | bab095bc9e3ad0963eeee66214f2c88b0e92e0e7 (patch) | |
tree | 9ef3457acd70a921e162120a4e6081373e49cc46 /gdb/config | |
parent | 5a5d6a3539ff7642a22d3d1c99fce27f0d02f49e (diff) | |
download | gdb-bab095bc9e3ad0963eeee66214f2c88b0e92e0e7.tar.gz |
* 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.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/alpha/alpha-linux.mh | 4 | ||||
-rw-r--r-- | gdb/config/alpha/nm-linux.h | 38 | ||||
-rw-r--r-- | gdb/config/alpha/nm-osf.h | 3 |
3 files changed, 2 insertions, 43 deletions
diff --git a/gdb/config/alpha/alpha-linux.mh b/gdb/config/alpha/alpha-linux.mh index 28a50c1c16e..26f050d9d34 100644 --- a/gdb/config/alpha/alpha-linux.mh +++ b/gdb/config/alpha/alpha-linux.mh @@ -1,6 +1,6 @@ # Host: Little-endian Alpha running Linux -NAT_FILE= nm-linux.h -NATDEPFILES= inf-ptrace.o corelow.o alpha-nat.o alpha-linux-nat.o \ +NAT_FILE= config/nm-linux.h +NATDEPFILES= inf-ptrace.o corelow.o alpha-linux-nat.o \ fork-child.o proc-service.o linux-thread-db.o gcore.o \ linux-nat.o linux-fork.o diff --git a/gdb/config/alpha/nm-linux.h b/gdb/config/alpha/nm-linux.h deleted file mode 100644 index 97811f767fe..00000000000 --- a/gdb/config/alpha/nm-linux.h +++ /dev/null @@ -1,38 +0,0 @@ -/* Native definitions for alpha running GNU/Linux. - - Copyright 1993, 1994, 1996, 1998, 2000, 2001, 2002, 2003, 2007 - Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -#ifndef NM_LINUX_H -#define NM_LINUX_H - -#include "config/nm-linux.h" - -/* Given a pointer to either a gregset_t or fpregset_t, return a - pointer to the first register. */ -#define ALPHA_REGSET_BASE(regsetp) ((long *) (regsetp)) - -/* Given a pointer to a gregset_t, locate the UNIQUE value. */ -#define ALPHA_REGSET_UNIQUE(regsetp) ((long *)(regsetp) + 32) - -/* The address of UNIQUE for ptrace. */ -#define ALPHA_UNIQUE_PTRACE_ADDR 65 - -#endif /* NM_LINUX_H */ diff --git a/gdb/config/alpha/nm-osf.h b/gdb/config/alpha/nm-osf.h index ad102b7a53f..1762c1c95c0 100644 --- a/gdb/config/alpha/nm-osf.h +++ b/gdb/config/alpha/nm-osf.h @@ -29,6 +29,3 @@ #define U_REGS_OFFSET 0 -/* Given a pointer to either a gregset_t or fpregset_t, return a - pointer to the first register. */ -#define ALPHA_REGSET_BASE(regsetp) ((regsetp)->regs) |