[Lldb-commits] [PATCH] D112931: Fix mixed disassembly showing source lines for "line 0"

Ted Woodward via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 12 09:39:49 PDT 2023


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;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112931.539606.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230712/e8ee8538/attachment-0001.bin>


More information about the lldb-commits mailing list