[Lldb-commits] [PATCH] D86996: [lldb] Add -l/--language option to script command

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 2 08:15:33 PDT 2020


labath added a comment.

In D86996#2251508 <https://reviews.llvm.org/D86996#2251508>, @JDevlieghere wrote:

> because I thought it would be silly to require you to type `script --language lua --` to launch the interactive Lua interpreter.

For better or worse, this is how `expr` works:

  (lldb) expr --show-types
  error: <user expression 0>:1:3: use of undeclared identifier 'show'
  --show-types
    ^
  error: <user expression 0>:1:8: use of undeclared identifier 'types'
  --show-types
         ^
  (lldb) expr --show-types --
  Enter expressions, then terminate with an empty line to evaluate:
    1: ^D

I agree that silly, but maybe the same fix should then be applied to the `expr` command (and any other command with similar behavior).


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

https://reviews.llvm.org/D86996



More information about the lldb-commits mailing list