Biarch support for i386/amd64 gdbserver.
authorDoug Evans <dje@google.com>
Tue, 12 May 2009 22:25:00 +0000 (22:25 +0000)
committerDoug Evans <dje@google.com>
Tue, 12 May 2009 22:25:00 +0000 (22:25 +0000)
commitd0722149ad594a7d3892bb2fd53a72c6d4933793
tree2141aaaad69d155907264b0afd45f4c0e8c2b00c
parent1b05fbbd2c03bb2c042be654aa2378bbfd2f845a
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/configure.srv
gdb/gdbserver/linux-i386-low.c [deleted file]
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-low.h
gdb/gdbserver/linux-x86-64-low.c [deleted file]
gdb/gdbserver/linux-x86-low.c [new file with mode: 0644]