diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-06-13 18:47:58 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-06-13 18:47:58 +0000 |
commit | 822b65708d4030ccb4fd2a979de5292f730e30b8 (patch) | |
tree | fb06d73c9429eb083bee074143a9292126d709ec /gdb/features | |
parent | f8b73d13b7ca749dee450b60e4e401b4c096bed6 (diff) | |
download | gdb-822b65708d4030ccb4fd2a979de5292f730e30b8.zip gdb-822b65708d4030ccb4fd2a979de5292f730e30b8.tar.gz gdb-822b65708d4030ccb4fd2a979de5292f730e30b8.tar.bz2 |
* config/mips/linux.mh (TDEP_XML): New.
* features/mips-linux.xml, features/mips64-linux.xml: New files.
* mips-linux-nat.c (mips_linux_register_addr): Handle
MIPS_RESTART_REGNUM.
(mips64_linux_register_addr): Likewise.
(super_xfer_partial, mips_linux_xfer_partial): New.
(_initialize_mips_linux_nat): Add them to the target_ops.
* mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
(mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
(mips_linux_o32_sigframe_init)
(mips_linux_n32n64_sigframe_init): Likewise.
(mips_linux_write_pc, mips_linux_restart_reg_p): New.
(mips_linux_init_abi): Use mips_linux_write_pc. Check for the
"org.gnu.gdb.mips.linux" feature.
* mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
(mips_linux_restart_reg_p): New prototype.
* mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
initialization routine.
* Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
* gdb.texinfo (MIPS Features): Document org.gnu.gdb.mips.linux.
Diffstat (limited to 'gdb/features')
-rw-r--r-- | gdb/features/mips-linux.xml | 18 | ||||
-rw-r--r-- | gdb/features/mips64-linux.xml | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/gdb/features/mips-linux.xml b/gdb/features/mips-linux.xml new file mode 100644 index 0000000..b1ece93 --- /dev/null +++ b/gdb/features/mips-linux.xml @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2007 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>mips</architecture> + <xi:include href="mips-cpu.xml"/> + <xi:include href="mips-cp0.xml"/> + <xi:include href="mips-fpu.xml"/> + + <feature name="org.gnu.gdb.mips.linux"> + <reg name="restart" bitsize="32" group="system"/> + </feature> +</target> diff --git a/gdb/features/mips64-linux.xml b/gdb/features/mips64-linux.xml new file mode 100644 index 0000000..fd757eb --- /dev/null +++ b/gdb/features/mips64-linux.xml @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<!-- Copyright (C) 2007 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. --> + +<!DOCTYPE target SYSTEM "gdb-target.dtd"> +<target> + <architecture>mips</architecture> + <xi:include href="mips64-cpu.xml"/> + <xi:include href="mips64-cp0.xml"/> + <xi:include href="mips64-fpu.xml"/> + + <feature name="org.gnu.gdb.mips.linux"> + <reg name="restart" bitsize="64" group="system"/> + </feature> +</target> |