Author: David Spickett Date: 2025-07-17T14:24:05Z New Revision: 756e07734b4f2aa64bd1bd5b6a29389c4c642323
URL: https://github.com/llvm/llvm-project/commit/756e07734b4f2aa64bd1bd5b6a29389c4c642323 DIFF: https://github.com/llvm/llvm-project/commit/756e07734b4f2aa64bd1bd5b6a29389c4c642323.diff LOG: [lldb][test] Adjust TestTypeList.py on Windows with exceptions Since https://github.com/llvm/llvm-project/pull/148691 enabled exceptions when compiling the tests, this test has been failing. Much like was noted there, one of the variables disappeared from the debug info. Giving it a non-zero size and initialising it fixed that. Added: Modified: lldb/test/API/python_api/type/main.cpp Removed: ################################################################################ diff --git a/lldb/test/API/python_api/type/main.cpp b/lldb/test/API/python_api/type/main.cpp index 6acde5bb666a6..449f77db0d75e 100644 --- a/lldb/test/API/python_api/type/main.cpp +++ b/lldb/test/API/python_api/type/main.cpp @@ -44,7 +44,12 @@ template <unsigned Value> struct PointerInfo { }; template <unsigned Value, typename InfoType = PointerInfo<Value>> -struct Pointer {}; +struct Pointer { + // When compiling for Windows with exceptions enabled, this struct + // must contain something that takes space and is initialised. + // Otherwise it will not be present in the debug information. + int pad = 0; +}; enum EnumType {}; enum class ScopedEnumType {}; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits