diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-04-12 15:35:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-04-12 15:35:32 +0000 |
commit | 214d508ee1d179d6c9e0e993d68628a0bc477124 (patch) | |
tree | a246980ee017a23fc7bcff794619709f9852ce7e /gdb/gdbserver/linux-low.h | |
parent | b38cadfb70dbcbe3f1b31f53e96f0ab9a72e394b (diff) | |
download | fsf-binutils-gdb-214d508ee1d179d6c9e0e993d68628a0bc477124.zip fsf-binutils-gdb-214d508ee1d179d6c9e0e993d68628a0bc477124.tar.gz fsf-binutils-gdb-214d508ee1d179d6c9e0e993d68628a0bc477124.tar.bz2 |
Check if GDBserver is compatible with process
PR gdb/13969
* linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
e_machine field.
(linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
* linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
* linux-x86-low.c (x86_arch_setup): Check if GDBserver is
compatible with process.
Diffstat (limited to 'gdb/gdbserver/linux-low.h')
-rw-r--r-- | gdb/gdbserver/linux-low.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-low.h b/gdb/gdbserver/linux-low.h index 07eda12..a1a6777 100644 --- a/gdb/gdbserver/linux-low.h +++ b/gdb/gdbserver/linux-low.h @@ -278,7 +278,7 @@ struct lwp_info extern struct inferior_list all_lwps; -int linux_pid_exe_is_elf_64_file (int pid); +int linux_pid_exe_is_elf_64_file (int pid, unsigned int *machine); void linux_attach_lwp (unsigned long pid); struct lwp_info *find_lwp_pid (ptid_t ptid); |