Dedicated completion for the command thread plan discard with a corresponding test case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- refactored for-loop into while-loop;
- added a new line at the end of thread_plan_script.py.
Comment Actions
+Jim, but this LGTM now (minus the kinda hidden increment, but I can fix that when merging).
lldb/source/Target/Thread.cpp | ||
---|---|---|
1117 | I think having the i++ in its own statement makes it easier to spot where we increment it. |
Comment Actions
The implementation looks fine.
The ThreadPlan that you push doesn't make any sense. That's fine because you never ask it to do anything, but you never know what people will take as an example, so it might be good to give it a name or add a comment indicating that this is a non-functional toy.
How about while(p) and incrementing i in plans.GetPlanByIndex.