+2015-05-29 Roland McGrath <mcgrathr@google.com>
+
+ * defs.h (enum gdb_osabi): Add GDB_OSABI_SYLLABLE and GDB_OSABI_NACL.
+ * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
+ GNU_ABI_TAG_SYLLABLE and GNU_ABI_TAG_NACL.
+ * configure.tgt (*-*-nacl*): Set gdb_osabi=GDB_OSABI_NACL.
+
2015-05-29 Roland McGrath <mcgrathr@google.com>
PR gdb/18464
gdb_osabi=GDB_OSABI_FREEBSD_ELF ;;
*-*-linux* | *-*-uclinux*)
gdb_osabi=GDB_OSABI_LINUX ;;
+*-*-nacl*) gdb_osabi=GDB_OSABI_NACL ;;
*-*-nto*) gdb_osabi=GDB_OSABI_QNXNTO ;;
m68*-*-openbsd* | m88*-*-openbsd* | vax-*-openbsd*) ;;
*-*-openbsd*) gdb_osabi=GDB_OSABI_OPENBSD_ELF ;;
/* The O_BINARY flag is defined in fcntl.h on some non-Posix platforms.
It is used as an access modifier in calls to open(), where it acts
similarly to the "b" character in fopen()'s MODE argument. On Posix
- platforms it should be a no-op, so it is defined as 0 here. This
+ platforms it should be a no-op, so it is defined as 0 here. This
ensures that the symbol may be used freely elsewhere in gdb. */
#ifndef O_BINARY
extern int build_address_symbolic (struct gdbarch *,
CORE_ADDR addr,
- int do_demangle,
- char **name,
- int *offset,
- char **filename,
- int *line,
+ int do_demangle,
+ char **name,
+ int *offset,
+ char **filename,
+ int *line,
int *unmapped);
extern void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *);
GDB_OSABI_LYNXOS178,
GDB_OSABI_NEWLIB,
GDB_OSABI_SDE,
+ GDB_OSABI_SYLLABLE,
+ GDB_OSABI_NACL,
GDB_OSABI_INVALID /* keep this last */
};
extern void (*selected_frame_level_changed_hook) (int);
extern int (*deprecated_ui_loop_hook) (int signo);
extern void (*deprecated_show_load_progress) (const char *section,
- unsigned long section_sent,
- unsigned long section_size,
- unsigned long total_sent,
+ unsigned long section_sent,
+ unsigned long section_size,
+ unsigned long total_sent,
unsigned long total_size);
extern void (*deprecated_print_frame_info_listing_hook) (struct symtab * s,
int line,
*osabi = GDB_OSABI_NETBSD_ELF;
break;
+ case GNU_ABI_TAG_SYLLABLE:
+ *osabi = GDB_OSABI_SYLLABLE;
+ break;
+
+ case GNU_ABI_TAG_NACL:
+ *osabi = GDB_OSABI_NACL;
+ break;
+
default:
warning (_("GNU ABI tag value %u unrecognized."), abi_tag);
break;