* readelf.c (get_stapsdt_note_type): New function.
authorTom Tromey <tromey@redhat.com>
Tue, 26 Apr 2011 13:09:10 +0000 (13:09 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 26 Apr 2011 13:09:10 +0000 (13:09 +0000)
(process_note): Recognize "stapsdt" notes.

binutils/ChangeLog
binutils/readelf.c

index 22e6049516c9a3fda4ba6d8dcd3867689d161b18..e925742e7f58807fb7679242754f20a644156166 100644 (file)
@@ -1,3 +1,8 @@
+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
index 1ff1fceb3d12bb6bf72b16add721942108fefa7f..339ef2e921a82cc0b6ea47347c7f7870683b87a9 100644 (file)
@@ -12350,6 +12350,24 @@ get_netbsd_elfcore_note_type (unsigned e_type)
   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)
 {
@@ -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.  */
This page took 0.030681 seconds and 4 git commands to generate.