[nto] Improve ABI sniffing.
authorAleksandar Ristovski <aristovski@qnx.com>
Wed, 21 Oct 2015 14:37:33 +0000 (10:37 -0400)
committerAleksandar Ristovski <aristovski@qnx.com>
Wed, 21 Oct 2015 14:37:33 +0000 (10:37 -0400)
commitd7161de46af80e460d432d8dbb1c42f8cbacf6dc
tree23b14a9132d8fe30ddde69eb2ad76f84dbb272cd
parenta9889169e5b21efb8c42105fc62461be43968d64
[nto] Improve ABI sniffing.

Use qnx specific notes to figure out the OS.

gdb/ChangeLog:
* gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
(nto_sniff_abi_note_section): New function.
(nto_elf_osabi_sniffer): Use new function to recognize nto specific
binary.
gdb/ChangeLog
gdb/nto-tdep.c