Commit Graph

2 Commits

Author SHA1 Message Date
Michael Gottesman
e1cc84d738 [lldb-tools] Add command disassemble-asm-cfg.
This works by dumping the disassembly of the current assembly frame into a
temporary file and then running:

  blockifyasm < tmpfile | viewcfg

without having to leave lldb.

I also fixed a small bug in the lldb-with-tools.in script where the input was
passed onto lldb as:

  lldb -O '...' -- $@

The -- should not have been there since sometimes one wants to /not/ use a --
argument form to lldb.
2018-02-22 12:56:11 -08:00
Michael Gottesman
8b96071803 [lldb-with-tools] Add a new utility script called lldb-with-tools.
This is a simple tool that starts lldb, but before it runs your commands, uses
the -O command to load lldbToolBox.py. This provide sthe llvm data formatters as
well as potential future lldb extensions that we write for swift itself.

A better name for this utility would be much appreciated, but I think for now
the name "lldb-with-tools" is at least self explanatory.
2018-02-19 07:02:15 -08:00