[all-commits] [llvm/llvm-project] 8bad4a: [lldb] Change dwim-print to default to disabled pe...

Dave Lee via All-commits all-commits at lists.llvm.org
Wed Mar 15 13:34:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bad4ae679df6fc7dbd016dccbd3da34206e836b
      https://github.com/llvm/llvm-project/commit/8bad4ae679df6fc7dbd016dccbd3da34206e836b
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M lldb/source/Commands/CommandObjectDWIMPrint.cpp
    M lldb/source/Commands/CommandObjectExpression.cpp
    M lldb/source/Commands/CommandObjectExpression.h
    M lldb/test/API/commands/dwim-print/TestDWIMPrint.py

  Log Message:
  -----------
  [lldb] Change dwim-print to default to disabled persistent results

Change `dwim-print` to now disable persistent results by default, unless requested by
the user with the `--persistent-result` flag.

Ex:

```
(lldb) dwim-print 1 + 1
(int) 2
(lldb) dwim-print --persistent-result on -- 1 + 1
(int) $0 = 2
```

Users who wish to enable persistent results can make and use an alias that includes
`--persistent-result on`.

Differential Revision: https://reviews.llvm.org/D145609




More information about the All-commits mailing list