Changeset View
Changeset View
Standalone View
Standalone View
contrib/gdb/gdb/osabi.c
Show First 20 Lines • Show All 568 Lines • ▼ Show 20 Lines | case ELFOSABI_HPUX: | ||||
break; | break; | ||||
} | } | ||||
if (osabi == GDB_OSABI_UNKNOWN) | if (osabi == GDB_OSABI_UNKNOWN) | ||||
{ | { | ||||
/* The FreeBSD folks have been naughty; they stored the string | /* The FreeBSD folks have been naughty; they stored the string | ||||
"FreeBSD" in the padding of the e_ident field of the ELF | "FreeBSD" in the padding of the e_ident field of the ELF | ||||
header to "brand" their ELF binaries in FreeBSD 3.x. */ | header to "brand" their ELF binaries in FreeBSD 3.x. */ | ||||
if (strcmp (&elf_elfheader (abfd)->e_ident[8], "FreeBSD") == 0) | if (strcmp ((const char *)(&elf_elfheader (abfd)->e_ident[8]), "FreeBSD") == 0) | ||||
osabi = GDB_OSABI_FREEBSD_ELF; | osabi = GDB_OSABI_FREEBSD_ELF; | ||||
} | } | ||||
return osabi; | return osabi; | ||||
} | } | ||||
␌ | ␌ | ||||
static void | static void | ||||
set_osabi (char *args, int from_tty, struct cmd_list_element *c) | set_osabi (char *args, int from_tty, struct cmd_list_element *c) | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |