[Lldb-commits] [lldb] [lldb] Improved formatting of 'register read' command. (PR #188049)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 2 09:28:41 PDT 2026
================
@@ -0,0 +1,24 @@
+# REQUIRES: x86
+
+# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
+# RUN: %lldb -b -o "breakpoint set --name main" \
+# RUN: -o run \
+# RUN: -o "register read rip r10d rflags" \
+# RUN: -o "register read" \
+# RUN: %t.out | FileCheck --strict-whitespace %s
+
+# CHECK: (lldb) register read rip r10d rflags
+# CHECK-NEXT: {{^ rip = }}
+# CHECK-NEXT: {{^ r10d = }}
+# CHECK-NEXT: {{^ rflags = }}
+
+# CHECK: (lldb) register read
+# CHECK: General Purpose Registers:
+# CHECK: {{ rsi = }}
----------------
DavidSpickett wrote:
I think you want the ^ here as well. Unless strict-whitespace is going to imply that but I think it will look for `<exact spaces><content>` at any point in the output lines, double check what it does.
https://github.com/llvm/llvm-project/pull/188049
More information about the lldb-commits
mailing list