[Lldb-commits] [PATCH] D57830: Add functionality to trace a function within lldb
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue May 28 08:20:20 PDT 2019
clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.
For this to actually work we need to:
- Disable skipping function prologues using "settings set target.skip-prologue false", set a breakpoint at the function we want to trace and store breakpoint in "trace_breakpoint", restore skipping function prologues
- make a local variable "tracing_function = False"
- when we stop, detect if the "trace_breakpoint" was hit and set "tracing_function = True" if it was. Calculate the the return address using the thread's backtrace and set a breakpoint there, store breakpoint in local variable "trace_return_breakpoint"
- when we continue check "tracing_function" and step if it is true, and continue it not
- When we stop check if "trace_return_breakpoint" was hit and if so, set "tracing_function = False"
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57830/new/
https://reviews.llvm.org/D57830
More information about the lldb-commits
mailing list