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:
Pedro Alves
2012-01-27 19:23:43 +00:00
parent 8c85a4e2f7
commit be07f1a20c
4 changed files with 26 additions and 33 deletions

View File

@ -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)
{