Add StringData pretty printer, skeleton for ArrayData; move walkstk class
commita46e1c79b6fee9d776f0c2ec52200f0f224ef954
authorMichael Christensen <mchristensen@fb.com>
Fri, 23 Sep 2022 16:36:38 +0000 (23 09:36 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 23 Sep 2022 16:36:38 +0000 (23 09:36 -0700)
tree41efc33fd041d765caac8db5c6238e2677dc1248
parent1e77c2f4864fc43ecfe1d2b6ac6f27489347126b
Add StringData pretty printer, skeleton for ArrayData; move walkstk class

Summary:
This adds the pretty printer for the `HPHP::StringData` class. It also adds the `ArrayData` printer for the `kVecKind` (just the metadata until I implement the iterator), and moves the `walkstk` class to its own module and adds a `Command` base class to handle some of the boilerplate of adding the commands to the debugger.

The main purpose is to get a good framework going for adding additional printers and commands, and to be able to (re)load them in lldb for debugging/altering the scripts themselves as we develop them further.

Reviewed By: arnabde03

Differential Revision: D39641653

fbshipit-source-id: dff2e44b03f6dbbcec520cf99c925e9cd07ec071
hphp/tools/lldb/hhvm.py
hphp/tools/lldb/pretty.py [new file with mode: 0644]
hphp/tools/lldb/stack.py [new file with mode: 0644]
hphp/tools/lldb/utils.py [new file with mode: 0644]