Commit Graph

9 Commits

Author SHA1 Message Date
Dave Lee
30ef2ae716 Fix PEP issues 2018-04-02 10:35:05 -07:00
Dave Lee
49def952ea Skip empty commands
Mostly likely case is when the last command has a semicolon:

    sequence p 1; p 2;

HandleCommand() fails when given an empty command.
2018-03-30 13:57:21 -07:00
Dave Lee
3c7c04fdc3 Explain the sequence examples 2018-03-30 12:53:33 -07:00
Dave Lee
e43de1c204 Fix mistake in header doc 2018-03-30 12:07:10 -07:00
Dave Lee
c16d0658ea Add sequence command to lldbToolBox 2018-03-30 11:38:24 -07:00
Michael Gottesman
37f34cc624 [lldb-with-tools] Rename create_swift_disassemble_viewcfg => disassemble_asm_cfg.
Now the python method matches the name used on the lldb command line.
2018-03-06 16:40:13 -08:00
Michael Gottesman
879808474b [lldb-with-tools] Add disassemble-to-file.
Sometimes it is really useful to be able to dump the disassembly from lldb into
a file so that one can work with the disassembly in an editor. The disassemble
command in lldb does not provide such facility today. So this lldb function in
the lldb toolbox provides such a facility.
2018-03-06 02:05:22 -08:00
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