diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp --- a/lldb/source/Core/Disassembler.cpp +++ b/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) { diff --git a/lldb/test/Shell/Commands/command-disassemble-mixed.c b/lldb/test/Shell/Commands/command-disassemble-mixed.c new file mode 100644 --- /dev/null +++ b/lldb/test/Shell/Commands/command-disassemble-mixed.c @@ -0,0 +1,18 @@ +// invalid mixed disassembly line + +// RUN: %clang -g %s -o %t +// RUN: %lldb %t -o "dis -m -n main" | FileCheck %s + +// CHECK: int main +// CHECK: int i +// CHECK-NOT: invalid mixed disassembly line +// CHECK: return 0; + +int main(int argc, char **argv) +{ + int i; + + for (i=0; i < 10; ++i) ; + + return 0; +}