This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG2ff533cba18a: [lldb][JITLoaderGDB] Test debug support in JITLink (authored by sgraenitz).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D96634/new/ https://reviews.llvm.org/D96634 Files: lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test lldb/test/Shell/Breakpoint/jitbp_elf.test Index: lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test =================================================================== --- lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test +++ lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test @@ -1,11 +1,21 @@ # REQUIRES: target-x86_64 # XFAIL: system-windows -# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf -o %t.ll %p/Inputs/jitbp.cpp -# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run -jit-kind=mcjit %t.ll' lli | FileCheck %s +# RuntimeDyld can be used to link and load emitted code for both, MCJIT and Orc. +# +# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf \ +# RUN: -o %t.ll %p/Inputs/jitbp.cpp +# +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=mcjit %t.ll' \ +# RUN: lli | FileCheck %s +# +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld %t.ll' \ +# RUN: lli | FileCheck %s # CHECK: Breakpoint 1: no locations (pending). -# CHECK: (lldb) run -jit-kind=mcjit {{.*}}/jitbp_elf.test.tmp.ll +# CHECK: (lldb) run {{.*}} # CHECK: Process {{.*}} stopped # CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15 # CHECK: -> 1 int jitbp() { return 0; } Index: lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test =================================================================== --- lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test +++ lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test @@ -1,11 +1,16 @@ # REQUIRES: target-x86_64 # XFAIL: system-windows -# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf -o %t.ll %p/Inputs/jitbp.cpp -# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run -jit-kind=mcjit %t.ll' lli | FileCheck %s +# JITLink is the Orc-specific JIT linker implementation. +# +# RUN: %clang -g -S -emit-llvm -fPIC --target=x86_64-unknown-unknown-elf \ +# RUN: -o %t.ll %p/Inputs/jitbp.cpp +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink %t.ll' \ +# RUN: lli | FileCheck %s # CHECK: Breakpoint 1: no locations (pending). -# CHECK: (lldb) run -jit-kind=mcjit {{.*}}/jitbp_elf.test.tmp.ll +# CHECK: (lldb) run {{.*}} # CHECK: Process {{.*}} stopped # CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15 # CHECK: -> 1 int jitbp() { return 0; }
Index: lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test =================================================================== --- lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test +++ lldb/test/Shell/Breakpoint/jit-loader_rtdyld_elf.test @@ -1,11 +1,21 @@ # REQUIRES: target-x86_64 # XFAIL: system-windows -# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf -o %t.ll %p/Inputs/jitbp.cpp -# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run -jit-kind=mcjit %t.ll' lli | FileCheck %s +# RuntimeDyld can be used to link and load emitted code for both, MCJIT and Orc. +# +# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf \ +# RUN: -o %t.ll %p/Inputs/jitbp.cpp +# +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=mcjit %t.ll' \ +# RUN: lli | FileCheck %s +# +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld %t.ll' \ +# RUN: lli | FileCheck %s # CHECK: Breakpoint 1: no locations (pending). -# CHECK: (lldb) run -jit-kind=mcjit {{.*}}/jitbp_elf.test.tmp.ll +# CHECK: (lldb) run {{.*}} # CHECK: Process {{.*}} stopped # CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15 # CHECK: -> 1 int jitbp() { return 0; } Index: lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test =================================================================== --- lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test +++ lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test @@ -1,11 +1,16 @@ # REQUIRES: target-x86_64 # XFAIL: system-windows -# RUN: %clang -g -S -emit-llvm --target=x86_64-unknown-unknown-elf -o %t.ll %p/Inputs/jitbp.cpp -# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' -o 'run -jit-kind=mcjit %t.ll' lli | FileCheck %s +# JITLink is the Orc-specific JIT linker implementation. +# +# RUN: %clang -g -S -emit-llvm -fPIC --target=x86_64-unknown-unknown-elf \ +# RUN: -o %t.ll %p/Inputs/jitbp.cpp +# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \ +# RUN: -o 'run --jit-kind=orc-lazy --per-module-lazy --jit-linker=jitlink %t.ll' \ +# RUN: lli | FileCheck %s # CHECK: Breakpoint 1: no locations (pending). -# CHECK: (lldb) run -jit-kind=mcjit {{.*}}/jitbp_elf.test.tmp.ll +# CHECK: (lldb) run {{.*}} # CHECK: Process {{.*}} stopped # CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15 # CHECK: -> 1 int jitbp() { return 0; }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits