mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
2012-01-27 Pedro Alves <palves@redhat.com>
* linux-low.c (linux_child_pid_to_exec_file): Delete. (elf_64_file_p): Make static. (linux_pid_exe_is_elf_64_file): New. * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p): Delete declarations. (linux_pid_exe_is_elf_64_file): Declare. * linux-x86-low.c (x86_arch_setup): Use linux_pid_exe_is_elf_64_file.
This commit is contained in:
@ -1106,10 +1106,7 @@ x86_arch_setup (void)
|
||||
{
|
||||
#ifdef __x86_64__
|
||||
int pid = pid_of (get_thread_lwp (current_inferior));
|
||||
char *file = linux_child_pid_to_exec_file (pid);
|
||||
int use_64bit = elf_64_file_p (file);
|
||||
|
||||
free (file);
|
||||
int use_64bit = linux_pid_exe_is_elf_64_file (pid);
|
||||
|
||||
if (use_64bit < 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user