diff options
author | Richard Mitton <richard@codersnotes.com> | 2013-09-12 02:20:34 +0000 |
---|---|---|
committer | Richard Mitton <richard@codersnotes.com> | 2013-09-12 02:20:34 +0000 |
commit | f86248d9ba1909392211968400ea97bd06da04c6 (patch) | |
tree | b736518b47f1be3be3c3d89530f1e753ce38e9fc /lldb/scripts/Python/interface | |
parent | 50c003b5774247b12655f439be959d23ee356614 (diff) | |
download | bcm5719-llvm-f86248d9ba1909392211968400ea97bd06da04c6.tar.gz bcm5719-llvm-f86248d9ba1909392211968400ea97bd06da04c6.zip |
Added a 'jump' command, similar to GDBs.
This allows the PC to be directly changed to a different line.
It's similar to the example python script in examples/python/jump.py, except implemented as a builtin.
Also this version will track the current function correctly even if the target line resolves to multiple addresses. (e.g. debugging a templated function)
llvm-svn: 190572
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBThread.i | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index 91193df214a..783b8ccb261 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -136,10 +136,13 @@ public: StepInstruction(bool step_over); SBError - StepOverUntil (lldb::SBFrame &frame, - lldb::SBFileSpec &file_spec, + StepOverUntil (lldb::SBFrame &frame, + lldb::SBFileSpec &file_spec, uint32_t line); + SBError + JumpToLine (lldb::SBFileSpec &file_spec, uint32_t line); + void RunToAddress (lldb::addr_t addr); |