+2011-04-21 Tom Tromey <tromey@redhat.com>
+
+ * readelf.c (get_stapsdt_note_type): New function.
+ (process_note): Recognize "stapsdt" notes.
+
2011-04-21 Tom Tromey <tromey@redhat.com>
* readelf.c (process_corefile_note_segment): Change header field
return buff;
}
+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)
{
/* 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. */