From f86248d9ba1909392211968400ea97bd06da04c6 Mon Sep 17 00:00:00 2001 From: Richard Mitton Date: Thu, 12 Sep 2013 02:20:34 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBThread.i | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lldb/scripts/Python') 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); -- cgit v1.2.3