[Lldb-commits] [PATCH] D139463: Fix breakpoint-command.test when no script interpreter is compiled in.
This revision was automatically updated to reflect the committed changes. Closed by commit rG1b753240d50a: Fix breakpoint-command.test when no script interpreter is compiled in. (authored by hctim). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139463/new/ https://reviews.llvm.org/D139463 Files: lldb/test/Shell/Breakpoint/breakpoint-command.test Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,5 @@ +# REQUIRES: lua || python + # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,5 @@ +# REQUIRES: lua || python + # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D139463: Fix breakpoint-command.test when no script interpreter is compiled in.
hctim updated this revision to Diff 482190. hctim marked an inline comment as done. hctim added a comment. change to using existing python/lua glue Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139463/new/ https://reviews.llvm.org/D139463 Files: lldb/test/Shell/Breakpoint/breakpoint-command.test Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,5 @@ +# REQUIRES: lua || python + # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,5 @@ +# REQUIRES: lua || python + # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D139463: Fix breakpoint-command.test when no script interpreter is compiled in.
hctim marked an inline comment as done. hctim added inline comments. Comment at: lldb/test/Shell/Breakpoint/breakpoint-command.test:1 +# REQUIRES: script-interpreter # RUN: %build %p/Inputs/dummy-target.c -o %t.out labath wrote: > Maybe this could just be `REQUIRES: lua || python`? I don't expect we will > have many tests that depend on the existence of a generic script interpreter > (in fact, it's kinda amazing that this bilingual expression even works). yeah, let's go with that Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139463/new/ https://reviews.llvm.org/D139463 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D139461: Fix dwarf5-lazy-dwo.c for the default c target not being c99.
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGfc5bda52f00b: Fix dwarf5-lazy-dwo.c for the default c target not being c99. (authored by hctim). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139461/new/ https://reviews.llvm.org/D139461 Files: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c Index: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c === --- lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c +++ lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c @@ -3,11 +3,11 @@ // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t1.o -DONE -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO -// RUN: %clang_host %t1.o %t2.o -o %t +// RUN: %clang_host %t1.o %t2.o -o %t -std=c99 // 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 Index: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c === --- lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c +++ lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c @@ -3,11 +3,11 @@ // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t1.o -DONE -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO -// RUN: %clang_host %t1.o %t2.o -o %t +// RUN: %clang_host %t1.o %t2.o -o %t -std=c99 // 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 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D139463: Fix breakpoint-command.test when no script interpreter is compiled in.
hctim created this revision. hctim added reviewers: JDevlieghere, labath. Herald added a project: All. hctim requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. My local build is with -DLLVM_ENABLE_PROJECTS=lldb, but I don't compile with -DLLDB_ENABLE_PYTHON=True or -DLLDB_ENABLE_LUA=True. This results in there being no script interpreter. The test lldb/test/Shell/Breakpoint/breakpoint-command.test has an implicit dependency on a script interpreter being available. This patch makes that dependency clear. If you have a script interpreter, the test gets run, otherwise it gets skipped. This means that folks (like me) who naively use -DLLVM_ENABLE_PROJECTS=lldb can continue to run check-all without breakages. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D139463 Files: lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt lldb/test/CMakeLists.txt lldb/test/Shell/Breakpoint/breakpoint-command.test lldb/test/Shell/lit.cfg.py lldb/test/Shell/lit.site.cfg.py.in Index: lldb/test/Shell/lit.site.cfg.py.in === --- lldb/test/Shell/lit.site.cfg.py.in +++ lldb/test/Shell/lit.site.cfg.py.in @@ -28,6 +28,8 @@ config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell") config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell") +config.has_script_interpreter = @LLDB_HAS_SCRIPT_INTERPRETER@ + import lit.llvm lit.llvm.initialize(lit_config, config) Index: lldb/test/Shell/lit.cfg.py === --- lldb/test/Shell/lit.cfg.py +++ lldb/test/Shell/lit.cfg.py @@ -135,6 +135,9 @@ if config.have_lldb_server: config.available_features.add('lldb-server') +if config.has_script_interpreter: +config.available_features.add('script-interpreter') + # NetBSD permits setting dbregs either if one is root # or if user_set_dbregs is enabled can_set_dbregs = True Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,4 @@ +# REQUIRES: script-interpreter # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s Index: lldb/test/CMakeLists.txt === --- lldb/test/CMakeLists.txt +++ lldb/test/CMakeLists.txt @@ -177,7 +177,8 @@ LLDB_HAS_LIBCXX LLDB_TOOL_LLDB_SERVER_BUILD LLDB_USE_SYSTEM_DEBUGSERVER - LLDB_IS_64_BITS) + LLDB_IS_64_BITS + LLDB_HAS_SCRIPT_INTERPRETER) # Configure the individual test suites. add_subdirectory(API) Index: lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt === --- lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt +++ lldb/source/Plugins/ScriptInterpreter/CMakeLists.txt @@ -1,8 +1,11 @@ +set(LLDB_HAS_SCRIPT_INTERPRETER FALSE) add_subdirectory(None) if (LLDB_ENABLE_PYTHON) + set(LLDB_HAS_SCRIPT_INTERPRETER TRUE) add_subdirectory(Python) endif() if (LLDB_ENABLE_LUA) + set(LLDB_HAS_SCRIPT_INTERPRETER TRUE) add_subdirectory(Lua) endif() Index: lldb/test/Shell/lit.site.cfg.py.in === --- lldb/test/Shell/lit.site.cfg.py.in +++ lldb/test/Shell/lit.site.cfg.py.in @@ -28,6 +28,8 @@ config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-shell") config.clang_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_CLANG@", "lldb-shell") +config.has_script_interpreter = @LLDB_HAS_SCRIPT_INTERPRETER@ + import lit.llvm lit.llvm.initialize(lit_config, config) Index: lldb/test/Shell/lit.cfg.py === --- lldb/test/Shell/lit.cfg.py +++ lldb/test/Shell/lit.cfg.py @@ -135,6 +135,9 @@ if config.have_lldb_server: config.available_features.add('lldb-server') +if config.has_script_interpreter: +config.available_features.add('script-interpreter') + # NetBSD permits setting dbregs either if one is root # or if user_set_dbregs is enabled can_set_dbregs = True Index: lldb/test/Shell/Breakpoint/breakpoint-command.test === --- lldb/test/Shell/Breakpoint/breakpoint-command.test +++ lldb/test/Shell/Breakpoint/breakpoint-command.test @@ -1,3 +1,4 @@ +# REQUIRES: script-interpreter # RUN: %build %p/Inputs/dummy-target.c -o %t.out # RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s Index: lldb/test/CMakeLists.txt === --- lldb/test/CMakeLists.txt +++
[Lldb-commits] [PATCH] D139461: Fix dwarf5-lazy-dwo.c for the default c target not being c99.
hctim created this revision. hctim added reviewers: Eric, jankratochvil, herhut. Herald added a project: All. hctim requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. My host compiler is clang version 15.0.0, which uses -std=c11 by default. The test asserts that the language is 'c99', and so the test fails locally. Update the test to be explicit about compiling with 'c99'. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D139461 Files: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c Index: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c === --- lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c +++ lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c @@ -3,11 +3,11 @@ // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t1.o -DONE -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO -// RUN: %clang_host %t1.o %t2.o -o %t +// RUN: %clang_host %t1.o %t2.o -o %t -std=c99 // 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 Index: lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c === --- lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c +++ lldb/test/Shell/SymbolFile/DWARF/dwarf5-lazy-dwo.c @@ -3,11 +3,11 @@ // -gsplit-dwarf is supported only on Linux. // REQUIRES: system-linux -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t1.o -DONE -// RUN: %clang_host %s -fno-standalone-debug -g \ +// RUN: %clang_host %s -fno-standalone-debug -g -std=c99 \ // RUN: -gdwarf-5 -gpubnames -gsplit-dwarf -c -o %t2.o -DTWO -// RUN: %clang_host %t1.o %t2.o -o %t +// RUN: %clang_host %t1.o %t2.o -o %t -std=c99 // 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 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits