This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Enable use of dummy target from dwim-print
ClosedPublic

Authored by kastiglione on Nov 29 2022, 4:38 PM.

Details

Summary

Allow dwim-print to evaluate expressions using the dummy target if no real
target exists.

This adds some parity to expression. With this, both of the following work:

lldb -o 'expr 1+2'
lldb -o 'dwim-print 1+2'

Diff Detail

Event Timeline

kastiglione created this revision.Nov 29 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 4:38 PM
kastiglione requested review of this revision.Nov 29 2022, 4:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 4:38 PM

Add docstring to new test function

labath accepted this revision.Dec 1 2022, 7:12 AM
This revision is now accepted and ready to land.Dec 1 2022, 7:12 AM
This revision was automatically updated to reflect the committed changes.