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 | 637f7d589ae8d57e1996dcc93167ded09aaea56d (patch) | |
tree | a11f951c4091a6977ead045a893f9ac19510acf7 /gdb/config | |
parent | 433020ab4655f5b0ca9d5188130687172e6af42a (diff) | |
download | gdb-637f7d589ae8d57e1996dcc93167ded09aaea56d.tar.gz |
* 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/config')
-rw-r--r-- | gdb/config/mips/linux.mh | 2 | ||||
-rw-r--r-- | gdb/config/mips/nm-linux.h | 32 |
2 files changed, 1 insertions, 33 deletions
diff --git a/gdb/config/mips/linux.mh b/gdb/config/mips/linux.mh index 4f5e01ff380..32381a4aa0c 100644 --- a/gdb/config/mips/linux.mh +++ b/gdb/config/mips/linux.mh @@ -1,5 +1,5 @@ # Host: Linux/MIPS -NAT_FILE= nm-linux.h +NAT_FILE= config/nm-linux.h NATDEPFILES= inf-ptrace.o fork-child.o mips-linux-nat.o \ linux-thread-db.o proc-service.o gcore.o \ linux-nat.o linux-fork.o diff --git a/gdb/config/mips/nm-linux.h b/gdb/config/mips/nm-linux.h deleted file mode 100644 index 81cfbfad042..00000000000 --- a/gdb/config/mips/nm-linux.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Native-dependent definitions for GNU/Linux on MIPS. - - Copyright 1996, 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_MIPSLINUX_H -#define NM_MIPSLINUX_H - -#include "config/nm-linux.h" - -int mips_linux_cannot_fetch_register (int regno); -int mips_linux_cannot_store_register (int regno); -#define CANNOT_FETCH_REGISTER(regno) mips_linux_cannot_fetch_register (regno) -#define CANNOT_STORE_REGISTER(regno) mips_linux_cannot_store_register (regno) - -#endif /* NM_MIPSLINUX_H */ |