[Lldb-commits] [PATCH] D119044: Add a cases Rust in LLDB's PDB reading
Arlo Siemsen via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 4 15:44:14 PST 2022
arlosi created this revision.
arlosi added reviewers: rnk, zturner, compnerd.
Herald added a subscriber: JDevlieghere.
arlosi requested review of this revision.
Herald added a project: LLDB.
D115300 <https://reviews.llvm.org/D115300> added Rust as a new PDB language type.
This change allows LLDB to recognize the new language type, and associate it with '.rs' files.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119044
Files:
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
Index: lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
+++ lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
@@ -74,6 +74,8 @@
return lldb::LanguageType::eLanguageTypeC;
case PDB_Lang::Swift:
return lldb::LanguageType::eLanguageTypeSwift;
+ case PDB_Lang::Rust:
+ return lldb::LanguageType::eLanguageTypeRust;
default:
return lldb::LanguageType::eLanguageTypeUnknown;
}
Index: lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
+++ lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
@@ -80,6 +80,8 @@
return lldb::LanguageType::eLanguageTypeC;
case PDB_Lang::Swift:
return lldb::LanguageType::eLanguageTypeSwift;
+ case PDB_Lang::Rust:
+ return lldb::LanguageType::eLanguageTypeRust;
default:
return lldb::LanguageType::eLanguageTypeUnknown;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119044.406120.patch
Type: text/x-patch
Size: 1098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220204/6fbb954a/attachment.bin>
More information about the lldb-commits
mailing list