[Lldb-commits] [lldb] [lldb] Fix std::unordered_* synthetic children when typedefs are used. (PR #123125)
Jacob Lalonde via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 15 14:09:56 PST 2025
================
@@ -18,15 +18,19 @@ int main() {
char buffer[sizeof(std::unordered_map<int, std::string>)] = {0};
std::unordered_map<int, std::string> &corrupt_map = *(std::unordered_map<int, std::string> *)buffer;
- std::unordered_map<int, std::string> map; // Set break point at this line.
+ // Make a typedef to ensure functionality when typedefs are used.
+ typedef std::unordered_map<int, std::string> UnorderedMap;
----------------
Jlalond wrote:
I think we should re-add at least one test case to ensure we're testing with and without the typedef.
https://github.com/llvm/llvm-project/pull/123125
More information about the lldb-commits
mailing list