summaryrefslogtreecommitdiffstats
path: root/contrib/gdb
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-04-18 02:20:58 +0000
committerandrew <andrew@FreeBSD.org>2013-04-18 02:20:58 +0000
commit630a7926307fcf6760d3c4c9fadc6ac2c8b52f67 (patch)
tree463b28fccd46f20a5d96a3550a7080b2f1931b89 /contrib/gdb
parent7b5712a5b538d1a33f58ef420091971787a25283 (diff)
downloadFreeBSD-src-630a7926307fcf6760d3c4c9fadc6ac2c8b52f67.zip
FreeBSD-src-630a7926307fcf6760d3c4c9fadc6ac2c8b52f67.tar.gz
Fix the value of NT_FREEBSD_TAG to be the same as ABI_NOTRTYPE in lib/csu.
Add NT_FREEBSD_NOINIT_TAG for the value of CRT_NOINIT_NOTETYPE. Check for both of these when detecting a FreeBSD binary in gdb.
Diffstat (limited to 'contrib/gdb')
-rw-r--r--contrib/gdb/gdb/osabi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/gdb/gdb/osabi.c b/contrib/gdb/gdb/osabi.c
index 4e43df5..2b31a6e 100644
--- a/contrib/gdb/gdb/osabi.c
+++ b/contrib/gdb/gdb/osabi.c
@@ -474,6 +474,12 @@ generic_elf_osabi_sniff_abi_tag_sections: unknown OS number %d",
*osabi = GDB_OSABI_FREEBSD_ELF;
return;
}
+ if (check_note (abfd, sect, note, "FreeBSD", 4, NT_FREEBSD_NOINIT_TAG))
+ {
+ /* There is no need to check the version yet. */
+ *osabi = GDB_OSABI_FREEBSD_ELF;
+ return;
+ }
return;
}
OpenPOWER on IntegriCloud