[Lldb-commits] [lldb] r218650 - Add a very trivial example for scripted stepping.

jingham at apple.com jingham at apple.com
Mon Sep 29 18:50:31 PDT 2014


Huh, I had edited this in /tmp, playing around to get it right, and then cut & pasted that into emacs in place to finish it up.  The python mode seems to have really mangled the text in the process.  I'll know not to try that again!

Should be better now.  Thanks for noticing this.

Jim

> On Sep 29, 2014, at 6:21 PM, Bruce Mitchener <bruce.mitchener at gmail.com> wrote:
> 
> This has some syntax errors in it (on inspection, not trying to use it)...
> 
>  - Bruce
> 
> 
> On Tue, Sep 30, 2014 at 7:24 AM, Jim Ingham <jingham at apple.com> wrote:
> +    defexplains_stop (self, event):
> 
> Should be def explains_stop ...
>  
> +    # Since all I'm doing is running a plan, I will only ever get askedthis
> +    # if myplan doesn't explain the stop, and in that caseI don'teither.
> +        return False
> +
> +defshould_stop (self, event):
> 
> Same ...
> 
> +if self.step_thread_plan.IsPlanComplete():
> +            self.thread_plan.SetPlanComplete(True)
> +            return True
> +else:
> +        return False
> 
> Not indented.
>  
> +defshould_step (self):
> +return False
> 
> etc ...




More information about the lldb-commits mailing list