summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/SymbolFile/DWARF/x86/member-pointers.cpp
AgeCommit message (Collapse)Author
2025-10-30[NFCI][lldb][test] Fix mismatched C/C++ substitutions (#165773)Raul Tambre
Most of the cases were where a C++ file was being compiled with the C substitution. There were a few cases of the opposite though. LLDB seems to be the only real culprit in the LLVM codebase for these mismatches. Rest of the LLVM presumably sticks at least language-specific options in the common substitutions making the mistakes immediately apparent. I found these by using Clang frontend configuration files containing language-specific options for both C and C++ (e.g. `-std=c2y` and `-std=c++26`).
2024-11-18[lldb] Infer MSInheritanceAttr for CXXRecordDecl with DWARF on Windows (#115177)Stefan Gränitz
Following up from https://github.com/llvm/llvm-project/pull/112928, we can reuse the approach from Clang Sema to infer the MSInheritanceModel and add the necessary attribute manually. This allows the inspection of member function pointers with DWARF on Windows.
2024-10-24Reland: [lldb] Fix crash missing MSInheritanceAttr with DWARF on Windows ↵Stefan Gränitz
(#112928) Member pointers refer to data or function members of a `CXXRecordDecl`, which require a `MSInheritanceAttr` in order to be complete. Without that we cannot calculate the size of a member pointer in memory. The attempt has been causing a crash further down in the clang AST context. In order to implement the feature, DWARF will need a new attribtue to convey the information. For the moment, this patch teaches LLDB to handle to situation and avoid the crash.
2024-10-23Revert "[lldb] Fix crash missing MSInheritanceAttr on CXXRecordDecl with ↵Shubham Sandeep Rastogi
DWARF on Windows" (#113498) Reverts llvm/llvm-project#112928 This is because it broke greendragon: SymbolFile/DWARF/x86/member-pointers.cpp
2024-10-23[lldb] Fix crash missing MSInheritanceAttr with DWARF on Windows (#112928)Stefan Gränitz
Member pointers refer to data or function members of a `CXXRecordDecl` and require a `MSInheritanceAttr` in order to be complete. Without that we cannot calculate their size in memory. The attempt has been causing a crash further down in the clang AST context. In order to implement the feature, DWARF will need a new attribtue to convey the information. For the moment, this patch teaches LLDB to handle to situation and avoid the crash.