mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* readelf.c (get_stapsdt_note_type): New function.
(process_note): Recognize "stapsdt" notes.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user