diff options
author | Doug Evans <dje@google.com> | 2009-05-12 22:25:00 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-05-12 22:25:00 +0000 |
commit | d0722149ad594a7d3892bb2fd53a72c6d4933793 (patch) | |
tree | 2141aaaad69d155907264b0afd45f4c0e8c2b00c /gdb/gdbserver/configure.srv | |
parent | 1b05fbbd2c03bb2c042be654aa2378bbfd2f845a (diff) | |
download | gdb-d0722149ad594a7d3892bb2fd53a72c6d4933793.zip gdb-d0722149ad594a7d3892bb2fd53a72c6d4933793.tar.gz gdb-d0722149ad594a7d3892bb2fd53a72c6d4933793.tar.bz2 |
Biarch support for i386/amd64 gdbserver.
* Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
Add linux-x86-low.c.
(linux-i386-low.o, linux-x86-64-low.o): Delete.
(linux-x86-low.o): Add.
* linux-x86-64-low.c: Delete.
* linux-i386-low.c: Delete.
* linux-x86-low.c: New file.
* configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
linux-x86-low.o.
(x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
linux-x86-low.o.
(x86_64-linux srv_regobj): Add reg-i386-linux.o.
* linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
(linux_child_pid_to_exec_file): New function.
(elf_64_header_p, elf_64_file_p): New functions.
(siginfo_fixup): New function.
(linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
give target a chance to convert layout.
* linux-low.h (linux_target_ops): New member siginfo_fixup.
(linux_child_pid_to_exec_file, elf_64_file_p): Declare.
Diffstat (limited to 'gdb/gdbserver/configure.srv')
-rw-r--r-- | gdb/gdbserver/configure.srv | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv index 924ac66..e4252af 100644 --- a/gdb/gdbserver/configure.srv +++ b/gdb/gdbserver/configure.srv @@ -56,7 +56,7 @@ case "${target}" in srv_tgtobj="win32-low.o win32-i386-low.o" ;; i[34567]86-*-linux*) srv_regobj=reg-i386-linux.o - srv_tgtobj="linux-low.o linux-i386-low.o i387-fp.o" + srv_tgtobj="linux-low.o linux-x86-low.o i387-fp.o" srv_linux_usrregs=yes srv_linux_regsets=yes srv_linux_thread_db=yes @@ -169,8 +169,9 @@ case "${target}" in spu*-*-*) srv_regobj=reg-spu.o srv_tgtobj="spu-low.o" ;; - x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o - srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" + x86_64-*-linux*) srv_regobj="reg-x86-64-linux.o reg-i386-linux.o" + srv_tgtobj="linux-low.o linux-x86-low.o i387-fp.o" + srv_linux_usrregs=yes # This is for i386 progs. srv_linux_regsets=yes srv_linux_thread_db=yes ;; |