[Lldb-commits] [lldb] [LLDB] Omit loading local symbols in LLDB symbol table (PR #154809)
David Peixotto via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 26 09:59:08 PDT 2025
================
@@ -2037,6 +2037,25 @@ static char FindArmAarch64MappingSymbol(const char *symbol_name) {
return '\0';
}
+static char FindRISCVMappingSymbol(const char *symbol_name) {
+ if (!symbol_name)
+ return '\0';
+
+ if (strcmp(symbol_name, "$d") == 0) {
+ return 'd';
+ }
+ if (strcmp(symbol_name, "$x") == 0) {
+ return 'x';
+ }
+ return '\0';
+}
+static bool IsRISCVArch(llvm::Triple::ArchType arch_machine) {
----------------
dmpots wrote:
We should use the existing function in `llvm::Triple` for this. Can replace calls to this function with`arch.GetTriple().isRISCV()`.
https://github.com/llvm/llvm-project/pull/154809
More information about the lldb-commits
mailing list