[Lldb-commits] [lldb] [lldb][DWARFUnit] Implement PeekDIEName query (PR #78486)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 17 11:05:18 PST 2024


================
@@ -104,3 +105,61 @@ TEST(DWARFDIETest, ChildIteration) {
   DWARFDIE no_children_die(unit, die_child0);
   EXPECT_TRUE(no_children_die.children().empty());
 }
+
+TEST(DWARFDIETest, PeekName) {
+  const char *yamldata = R"(
+--- !ELF
+FileHeader:
----------------
clayborg wrote:

This test could be improved to handle the `DW_AT_specification` and `DW_AT_abstract_origin` case I mentioned above.

https://github.com/llvm/llvm-project/pull/78486


More information about the lldb-commits mailing list