summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 3d38a3ce..aee01835 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -5604,7 +5604,9 @@ dwarf_type_name(Dwarf_Die& type_die, string& c_type)
}
if (done)
{
- c_type.append(dwarf_diename(&type_die));
+ // this follows gdb precedent that anonymous structs/unions
+ // are displayed as "struct {...}" and "union {...}".
+ c_type.append(dwarf_diename(&type_die) ?: "{...}");
return true;
}