[lldb] Add --gdb-format flag to dwim-print
authorDave Lee <davelee.com@gmail.com>
Mon, 19 Dec 2022 23:33:56 +0000 (15:33 -0800)
committerDave Lee <davelee.com@gmail.com>
Thu, 9 Feb 2023 03:16:20 +0000 (19:16 -0800)
commitd160873c03aedfcd201851829aa423cc10ef593a
tree2fc67542b19e4f3a93ff37f8e749abb2b75d5ca5
parentc49941bd0d7f2a7a9ddbdce29fd584827d00dd06
[lldb] Add --gdb-format flag to dwim-print

Add support for the `--gdb-format`/`-G` flag to `dwim-print`.

The gdb-format flag allows users to alias `p` to `dwim-print`.

Differential Revision: https://reviews.llvm.org/D141425
lldb/source/Commands/CommandObjectDWIMPrint.cpp
lldb/source/Commands/CommandObjectDWIMPrint.h
lldb/test/API/commands/dwim-print/TestDWIMPrint.py