[all-commits] [llvm/llvm-project] 385496: Recommit [lldb] Change dwim-print to default to di...

Dave Lee via All-commits all-commits at lists.llvm.org
Tue Mar 21 10:42:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 385496385476fc9735da5fa4acabc34654e8b30d
      https://github.com/llvm/llvm-project/commit/385496385476fc9735da5fa4acabc34654e8b30d
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2023-03-21 (Tue, 21 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
    M lldb/test/API/commands/expression/persistent_result/TestPersistentResult.py
    M lldb/test/API/functionalities/alias/TestPAlias.py

  Log Message:
  -----------
  Recommit [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`.

Updates: To recommit this, both TestPersistentResult.py and TestPAlias.py needed to be
updated, as well as the changes in D146230.

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




More information about the All-commits mailing list