static const struct target_desc * aarch64_linux_read_description (void) { unsigned int machine; int is_elf64; int tid; tid = lwpid_of (current_thread); is_elf64 = linux_pid_exe_is_elf_64_file (tid, &machine); if (is_elf64) return tdesc_aarch64; else return tdesc_arm_with_neon; }
static void tile_arch_setup (void) { int pid = pid_of (current_thread); unsigned int machine; int is_elf64 = linux_pid_exe_is_elf_64_file (pid, &machine); if (sizeof (void *) == 4) if (is_elf64 > 0) error (_("Can't debug 64-bit process with 32-bit GDBserver")); if (!is_elf64) current_process ()->tdesc = tdesc_tilegx32; else current_process ()->tdesc = tdesc_tilegx; }