kastiglione updated this revision to Diff 521392. kastiglione added a comment.
add Shell test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D150383/new/ https://reviews.llvm.org/D150383 Files: lldb/source/Core/Disassembler.cpp lldb/test/Shell/Commands/command-disassemble-mixed.test Index: lldb/test/Shell/Commands/command-disassemble-mixed.test =================================================================== --- /dev/null +++ lldb/test/Shell/Commands/command-disassemble-mixed.test @@ -0,0 +1,12 @@ +extern int do_not_show; + +int main() { + int abc = 30; +#line 0 + return abc; +} + +// RUN: %clang_host -g -x c -o a.out %s +// RUN: %lldb -b -o 'disassemble --mixed -n main' a.out | FileCheck %s + +// CHECK-NOT: do_not_show Index: lldb/source/Core/Disassembler.cpp =================================================================== --- lldb/source/Core/Disassembler.cpp +++ lldb/source/Core/Disassembler.cpp @@ -243,7 +243,7 @@ // Skip any line #0 entries - they are implementation details if (line.line == 0) - return false; + return true; ThreadSP thread_sp = exe_ctx.GetThreadSP(); if (thread_sp) {
Index: lldb/test/Shell/Commands/command-disassemble-mixed.test =================================================================== --- /dev/null +++ lldb/test/Shell/Commands/command-disassemble-mixed.test @@ -0,0 +1,12 @@ +extern int do_not_show; + +int main() { + int abc = 30; +#line 0 + return abc; +} + +// RUN: %clang_host -g -x c -o a.out %s +// RUN: %lldb -b -o 'disassemble --mixed -n main' a.out | FileCheck %s + +// CHECK-NOT: do_not_show Index: lldb/source/Core/Disassembler.cpp =================================================================== --- lldb/source/Core/Disassembler.cpp +++ lldb/source/Core/Disassembler.cpp @@ -243,7 +243,7 @@ // Skip any line #0 entries - they are implementation details if (line.line == 0) - return false; + return true; ThreadSP thread_sp = exe_ctx.GetThreadSP(); if (thread_sp) {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits