This revision was automatically updated to reflect the committed changes. Closed by commit rGded1bad64af0: Fix mixed disassembly showing source lines for "line 0" (authored by ted). Herald added a project: All.
Changed prior to commit: https://reviews.llvm.org/D112931?vs=383810&id=539606#toc Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112931/new/ https://reviews.llvm.org/D112931 Files: lldb/test/Shell/Commands/command-disassemble-mixed.c Index: lldb/test/Shell/Commands/command-disassemble-mixed.c =================================================================== --- /dev/null +++ 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" -o "exit" | 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; +}
Index: lldb/test/Shell/Commands/command-disassemble-mixed.c =================================================================== --- /dev/null +++ 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" -o "exit" | 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; +}
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits