[Lldb-commits] [PATCH] D11447: Specify a language to use when parsing expressions.

Dawn Perchik dawn+llvm at burble.org
Wed Jul 22 19:29:44 PDT 2015


dawn created this revision.
dawn added reviewers: clayborg, jingham, spyffe.
dawn added a subscriber: lldb-commits.
dawn set the repository for this revision to rL LLVM.

This patch adds the option -l/--language to the expression command, for use when setting the language options or choosing an alternate FE.  If not specified, the target.language setting is used.  It is the expression counterpart of http://reviews.llvm.org/D11119 which added the --language option to breakpoint set command.

I ran into problems adding the test case as you can see.  Apparently runCmd always fails if an error is returned from the command, so I had to reverse the tests using try/expect.  I can optionally comment them out until the issue is fixed - let me know.

Repository:
  rL LLVM

http://reviews.llvm.org/D11447

Files:
  source/Commands/CommandObjectExpression.cpp
  source/Commands/CommandObjectExpression.h
  test/expression_command/options/Makefile
  test/expression_command/options/TestExprOptions.py
  test/expression_command/options/foo.cpp
  test/expression_command/options/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11447.30443.patch
Type: text/x-patch
Size: 9636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150723/84e13d7e/attachment.bin>


More information about the lldb-commits mailing list