diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-02-27 07:07:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-02-27 07:07:49 +0000 |
commit | 58caa3dcdb43a5d66932182338f41df0bfd6cc98 (patch) | |
tree | 8932e0b600933a36f94b2668449ca3626bc0b5ac /gdb/gdbserver/configure.srv | |
parent | 936521746ce912bf28fbeb3be2a006f6ffe23929 (diff) | |
download | gdb-58caa3dcdb43a5d66932182338f41df0bfd6cc98.zip gdb-58caa3dcdb43a5d66932182338f41df0bfd6cc98.tar.gz gdb-58caa3dcdb43a5d66932182338f41df0bfd6cc98.tar.bz2 |
2002-02-27 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/acconfig.h: New file.
* gdbserver/i387-fp.c: New file.
* gdbserver/i387-fp.h: New file.
* gdbserver/linux-x86-64.c: New file.
* regformats/reg-x86-64.dat: New file.
* configure.tgt: Add x86_64-*-linux* gdbserver support.
& gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
* gdbserver/configure.in: Add support for regsets.
* gdbserver/config.in: Regenerate.
* gdbserver/configure: Regenerate.
* gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
* gdbserver/linux-low.h: New file.
* gdbserver/linux-low.c: Include "linux-low.h". Add support
for regsets.
* gdbserver/linux-arm-low.c: Include "linux-low.h".
* gdbserver/linux-ia64-low.c: Include "linux-low.h".
* gdbserver/linux-m68k-low.c: Include "linux-low.h".
* gdbserver/linux-mips-low.c: Include "linux-low.h".
* gdbserver/linux-ppc-low.c: Include "linux-low.h".
* gdbserver/linux-sh-low.c: Include "linux-low.h".
* gdbserver/linux-i386-low.c: Include "linux-low.h". Include
"i387-fp.h". Add PTRACE_GETREGS and friends.
* gdbserver/regcache.c (supply_register): New function.
(supply_register_by_name): New function.
(collect_register): New function.
(collect_register_by_name): New function.
Diffstat (limited to 'gdb/gdbserver/configure.srv')
-rw-r--r-- | gdb/gdbserver/configure.srv | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv index 6c0b00d..523dcb6 100644 --- a/gdb/gdbserver/configure.srv +++ b/gdb/gdbserver/configure.srv @@ -10,30 +10,46 @@ # In addition, on GNU/Linux the following shell variables will be set: # srv_linux_regsets Set to "yes" if ptrace(PTRACE_GETREGS) and friends # may be available on this platform; unset otherwise. +# They will only be used if <sys/ptrace.h> defines +# PTRACE_GETREGS. +# srv_linux_usrregs Set to "yes" if we can get at registers via +# PTRACE_PEEKUSR / PTRACE_POKEUSR. # Input is taken from the "${target}" variable. case "${target}" in arm*-*-linux*) srv_regobj=reg-arm.o srv_tgtobj="linux-low.o linux-arm-low.o" + srv_linux_usrregs=yes ;; i[3456]86-*-linux*) srv_regobj=reg-i386-linux.o - srv_tgtobj="linux-low.o linux-i386-low.o" + srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o" + srv_linux_usrregs=yes + srv_linux_regsets=yes ;; ia64-*-linux*) srv_regobj=reg-ia64.o srv_tgtobj="linux-low.o linux-ia64-low.o" + srv_linux_usrregs=yes ;; m68*-*-linux*) srv_regobj=reg-m68k.o srv_tgtobj="linux-low.o linux-m68k-low.o" + srv_linux_usrregs=yes ;; mips*-*-linux*) srv_regobj=reg-mips.o srv_tgtobj="linux-low.o linux-mips-low.o" + srv_linux_usrregs=yes ;; powerpc*-*-linux*) srv_regobj=reg-ppc.o srv_tgtobj="linux-low.o linux-ppc-low.o" + srv_linux_usrregs=yes ;; sh*-*-linux*) srv_regobj=reg-sh.o srv_tgtobj="linux-low.o linux-sh-low.o" + srv_linux_usrregs=yes + ;; + x86_64-*-linux*) srv_regobj=reg-x86-64.o + srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" + srv_linux_regsets=yes ;; *) echo "Error: target not supported by gdbserver." exit 1 |