[Lldb-commits] [PATCH] D59681: Update the lldb driver to support the -O and -S options when passing --repl

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 22 08:45:22 PDT 2019


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

Thanks! LGTM with one tiny change to the test.



================
Comment at: lldb/lit/Driver/TestRepl.test:2
+# RUN: echo ':quit' | %lldb -x --repl -O 'expr 42' -S %S/Inputs/Print2.in -o 'expr something invalid' -s %s 2>&1 | FileCheck %s
+# CHECK: warning: commands specified to run after file load (via -o or -s) are ignored in REPL mode
+# CHECK: (int) $0 = 42
----------------
I think the REPL by default echoes all comments, so this may actually be matching the comment in the input file rather than the warning?

I think this should do the trick:

`# CHECK: {{w}}arning: commands specified to run after file load (via -o or -s) are ignored in REPL mode`


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59681/new/

https://reviews.llvm.org/D59681





More information about the lldb-commits mailing list