Skip to content

Commit fcee033

Browse files
authored
[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
1 parent da0e535 commit fcee033

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

lldb/source/Target/Process.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5924,7 +5924,9 @@ void Process::PrintWarningUnsupportedLanguage(const SymbolContext &sc) {
59245924
if (!sc.module_sp)
59255925
return;
59265926
LanguageType language = sc.GetLanguage();
5927-
if (language == eLanguageTypeUnknown)
5927+
if (language == eLanguageTypeUnknown ||
5928+
language == lldb::eLanguageTypeAssembly ||
5929+
language == lldb::eLanguageTypeMipsAssembler)
59285930
return;
59295931
LanguageSet plugins =
59305932
PluginManager::GetAllTypeSystemSupportedLanguagesForTypes();
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
Test warnings.
1+
Test unsupported language warning
2+
23
REQUIRES: shell
4+
35
RUN: %clang_host %S/Inputs/true.c -std=c99 -g -c -S -emit-llvm -o - \
46
RUN: | sed -e 's/DW_LANG_C99/DW_LANG_Mips_Assembler/g' >%t.ll
57
RUN: %clang_host %t.ll -g -o %t.exe
6-
RUN: %lldb -o "b main" -o r -o q -b %t.exe 2>&1 | FileCheck %s
8+
RUN: %lldb -o "b main" -o r -o q -b %t.exe 2>&1 | FileCheck %s --check-prefix ASM
9+
10+
ASM-NOT: This version of LLDB has no plugin for the language "assembler"
11+
12+
RUN: %clang_host %S/Inputs/true.c -std=c99 -g -c -S -emit-llvm -o - \
13+
RUN: | sed -e 's/DW_LANG_C99/DW_LANG_Cobol74/g' >%t.ll
14+
RUN: %clang_host %t.ll -g -o %t.exe
15+
RUN: %lldb -o "b main" -o r -o q -b %t.exe 2>&1 | FileCheck %s --check-prefix COBOL
716

8-
CHECK: This version of LLDB has no plugin for the language "assembler"
17+
COBOL: This version of LLDB has no plugin for the language "cobol74"

0 commit comments

Comments
 (0)