diff options
author | Tom Tromey <tromey@redhat.com> | 2011-04-26 13:09:10 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2011-04-26 13:09:10 +0000 |
commit | 70616151ac0740159e28d61fa0f07515c18e8098 (patch) | |
tree | aa3027b32ab17c29621d9f769a3cf2af603b6a7b /binutils/readelf.c | |
parent | 2aee03ae361c03bdfc722d955ad1eab02462cd8a (diff) | |
download | fsf-binutils-gdb-70616151ac0740159e28d61fa0f07515c18e8098.zip fsf-binutils-gdb-70616151ac0740159e28d61fa0f07515c18e8098.tar.gz fsf-binutils-gdb-70616151ac0740159e28d61fa0f07515c18e8098.tar.bz2 |
* readelf.c (get_stapsdt_note_type): New function.
(process_note): Recognize "stapsdt" notes.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 1ff1fce..339ef2e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -12351,6 +12351,24 @@ get_netbsd_elfcore_note_type (unsigned e_type) } static const char * +get_stapsdt_note_type (unsigned e_type) +{ + static char buff[64]; + + switch (e_type) + { + case NT_STAPSDT: + return _("NT_STAPSDT (SystemTap probe descriptors)"); + + default: + break; + } + + snprintf (buff, sizeof (buff), _("Unknown note type: (0x%08x)"), e_type); + return buff; +} + +static const char * get_ia64_vms_note_type (unsigned e_type) { static char buff[64]; @@ -12496,6 +12514,9 @@ process_note (Elf_Internal_Note * pnote) /* VMS/ia64-specific file notes. */ nt = get_ia64_vms_note_type (pnote->type); + else if (const_strneq (pnote->namedata, "stapsdt")) + nt = get_stapsdt_note_type (pnote->type); + else /* Don't recognize this note name; just use the default set of note type strings. */ |