[lldb] Suppress unsupported language warning for assembly (#95871)

The following warning is technically correct, but pretty much useless,
since there aren't any frame variables that we'd expect the debugger to
understand.

> This version of LLDB has no plugin for the language "assembler".
> Inspection of frame variables will be limited.

This message is useful in the general case but should be suppressed for
the "assembler" case.

rdar://92745462
This commit is contained in:
Jonas Devlieghere
2024-06-18 08:51:40 -07:00
committed by GitHub
parent da0e5359fc
commit fcee0333ba
2 changed files with 15 additions and 4 deletions

View File

@@ -5924,7 +5924,9 @@ void Process::PrintWarningUnsupportedLanguage(const SymbolContext &sc) {
if (!sc.module_sp)
return;
LanguageType language = sc.GetLanguage();
if (language == eLanguageTypeUnknown)
if (language == eLanguageTypeUnknown ||
language == lldb::eLanguageTypeAssembly ||
language == lldb::eLanguageTypeMipsAssembler)
return;
LanguageSet plugins =
PluginManager::GetAllTypeSystemSupportedLanguagesForTypes();