[Lldb-commits] [lldb] 7377997 - [lldb] Rework 'lldb' substitution workaround in dwarf5-lazy-dwo.c

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 11 03:12:38 PDT 2021


Author: Raphael Isemann
Date: 2021-08-11T12:12:25+02:00
New Revision: 737799713451a59ec2c2a84ea2daeceaf32ff1d5

URL: https://github.com/llvm/llvm-project/commit/737799713451a59ec2c2a84ea2daeceaf32ff1d5
DIFF: https://github.com/llvm/llvm-project/commit/737799713451a59ec2c2a84ea2daeceaf32ff1d5.diff

LOG: [lldb] Rework 'lldb' substitution workaround in dwarf5-lazy-dwo.c

This test is specifying the lldb log channel via `ll""db` which only really works
because the command parser ends up parsing that as `lldb`. Just putting the
channel name in quotes is enough to avoid the lldb command substitution and
doesn't rely on this weird parser behaviour.

Added: 
    

Modified: 
    lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
index 7e5a44035df71..5c9f1fc60976e 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
+++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c
@@ -8,7 +8,7 @@
 // RUN: %clang_host %s -fno-standalone-debug -g \
 // RUN:   -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO
 // RUN: %clang_host %t1.o %t2.o -o %t
-// RUN: %lldb %t -o "log enable ll""db object" -o "settings set stop-line-count-before 0" \
+// RUN: %lldb %t -o "log enable 'lldb' object" -o "settings set stop-line-count-before 0" \
 // RUN:   -o "b main" -o "run" -o "image lookup -n main -v" -b | FileCheck %s
 
 // CHECK-NOT: 2.dwo,


        


More information about the lldb-commits mailing list