summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorRichard Mitton <richard@codersnotes.com>2013-09-12 02:20:34 +0000
committerRichard Mitton <richard@codersnotes.com>2013-09-12 02:20:34 +0000
commitf86248d9ba1909392211968400ea97bd06da04c6 (patch)
treeb736518b47f1be3be3c3d89530f1e753ce38e9fc /lldb/scripts/Python/interface
parent50c003b5774247b12655f439be959d23ee356614 (diff)
downloadbcm5719-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.i7
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);
OpenPOWER on IntegriCloud