summaryrefslogtreecommitdiff
path: root/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp
AgeCommit message (Collapse)Author
2025-05-21[lldb] Add templated CompilerType::GetTypeSystem (NFC) (#140424)Dave Lee
Add an overloaded `GetTypeSystem` to specify the expected type system subclass. Changes code from `GetTypeSystem().dyn_cast_or_null<TypeSystemClang>()` to `GetTypeSystem<TypeSystemClang>()`.
2025-02-07[lldb][NFC] Replace GetLocalBufferSize() with GetLocalBuffer() (#126333)Augusto Noronha
2025-02-07[lldb] Fix compiler error in ValueObject testsDavid Spickett
Fixes 0cbc4983adcdbbd85ccb38b2dfbfe5985367b1b2. error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] 71 | in_value.GetLocalBufferSize()}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Given this is test code, I think a static cast is fine here. Tiny risk that it's actually a symptom of a bug that would happen if you did 32-bit to 64-bit debugging. I expect you'd find a lot more bugs than that though.
2025-02-07[lldb] Fix build error in ValueObject testDavid Spickett
Fixes 0cbc4983adcdbbd85ccb38b2dfbfe5985367b1b2. llvm-project/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp(221): error C2065: 'u_int8_t': undeclared identifier
2025-02-06[lldb] Make ValueObjectDynamicValue::UpdateValue() point to a host b… ↵Augusto Noronha
(#125143) …uffer ValueObjectDynamicValue::UpdateValue() assumes that the dynamic type found by GetDynamicTypeAndAddress() would return an address in the inferior. This commit makes it so it can deal with being passed a host address instead. This is needed downstream by the Swift fork. rdar://143357274