Skip to content

Commit 9c401f3

Browse files
authored
Merge branch 'main' into unroll-fp-reductions
2 parents 3e3db0b + f163081 commit 9c401f3

34 files changed

+62
-46
lines changed

cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// XFAIL: system-darwin
21
// RUN: %clang %target_itanium_abi_host_triple %p/Inputs/simplified_template_names.cpp -c -o - -gdwarf-4 -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params -std=c++20 -gtemplate-alias \
32
// RUN: | llvm-dwarfdump --verify -
43
//

lldb/test/API/functionalities/breakpoint/hardware_breakpoints/simple_hw_breakpoints/TestSimpleHWBreakpoints.py

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77

88

99
class SimpleHWBreakpointTest(HardwareBreakpointTestBase):
10-
def does_not_support_hw_breakpoints(self):
11-
# FIXME: Use HardwareBreakpointTestBase.supports_hw_breakpoints
12-
if super().supports_hw_breakpoints() is None:
13-
return "Hardware breakpoints are unsupported"
14-
return None
15-
16-
@skipTestIfFn(does_not_support_hw_breakpoints)
10+
@skipTestIfFn(HardwareBreakpointTestBase.hw_breakpoints_unsupported)
1711
def test(self):
1812
"""Test SBBreakpoint::SetIsHardware"""
1913
self.build()
@@ -35,16 +29,13 @@ def test(self):
3529
# breakpoint will be marked as a hardware breakpoint.
3630
self.assertTrue(break_on_me_bp.IsHardware())
3731

38-
if super().supports_hw_breakpoints():
39-
self.assertSuccess(error)
40-
41-
# Continue to our Hardware breakpoint and verify that's the reason
42-
# we're stopped.
43-
process.Continue()
44-
self.expect(
45-
"thread list",
46-
STOPPED_DUE_TO_BREAKPOINT,
47-
substrs=["stopped", "stop reason = breakpoint"],
48-
)
49-
else:
50-
self.assertFailure(error)
32+
self.assertSuccess(error)
33+
34+
# Continue to our Hardware breakpoint and verify that's the reason
35+
# we're stopped.
36+
process.Continue()
37+
self.expect(
38+
"thread list",
39+
STOPPED_DUE_TO_BREAKPOINT,
40+
substrs=["stopped", "stop reason = breakpoint"],
41+
)

llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,23 @@ const char *toString(std::optional<DWARFFormValueType> F) {
167167
}
168168
return nullptr;
169169
}
170+
171+
/// Resolve the DW_AT_type of \c D until we reach a DIE that is not a
172+
/// DW_TAG_typedef.
173+
template <typename DieType> DieType unwrapReferencedTypedefType(DieType D) {
174+
auto TypeAttr = D.find(dwarf::DW_AT_type);
175+
if (!TypeAttr)
176+
return DieType();
177+
178+
auto Unwrapped = detail::resolveReferencedType(D, *TypeAttr);
179+
if (!Unwrapped)
180+
return DieType();
181+
182+
if (Unwrapped.getTag() == dwarf::DW_TAG_typedef)
183+
return unwrapReferencedTypedefType(Unwrapped);
184+
185+
return Unwrapped;
186+
}
170187
} // namespace detail
171188

172189
template <typename DieType>
@@ -588,10 +605,9 @@ bool DWARFTypePrinter<DieType>::appendTemplateParameters(DieType D,
588605
}
589606
if (C.getTag() != dwarf::DW_TAG_template_type_parameter)
590607
continue;
591-
auto TypeAttr = C.find(dwarf::DW_AT_type);
592608
Sep();
593-
appendQualifiedName(TypeAttr ? detail::resolveReferencedType(C, *TypeAttr)
594-
: DieType());
609+
610+
appendQualifiedName(detail::unwrapReferencedTypedefType(C));
595611
}
596612
if (IsTemplate && *FirstParameter && FirstParameter == &FirstParameterValue) {
597613
OS << '<';

llvm/test/tools/dsymutil/ARM/DWARFLinkerParallel/accel-imported-declarations.test renamed to llvm/test/tools/dsymutil/AArch64/DWARFLinkerParallel/accel-imported-declarations.test

File renamed without changes.

llvm/test/tools/dsymutil/ARM/accel-imported-declarations.test renamed to llvm/test/tools/dsymutil/AArch64/accel-imported-declarations.test

File renamed without changes.
File renamed without changes.

llvm/test/tools/dsymutil/ARM/debug-names-accel-table-types.ll renamed to llvm/test/tools/dsymutil/AArch64/debug-names-accel-table-types.ll

File renamed without changes.
File renamed without changes.

llvm/test/tools/dsymutil/ARM/discriminator_repeated.test renamed to llvm/test/tools/dsymutil/AArch64/discriminator_repeated.test

File renamed without changes.

llvm/test/tools/dsymutil/ARM/dummy-debug-map-amr64.map renamed to llvm/test/tools/dsymutil/AArch64/dummy-debug-map-arm64.map

File renamed without changes.

0 commit comments

Comments
 (0)