[Lldb-commits] [lldb] [lldb] Implement basic support for reverse-continue (PR #99736)

Robert O'Callahan via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 29 13:06:14 PDT 2024


rocallahan wrote:

> As it stands, this will allow "reverse continue to a breakpoint", right?

Using rr as the backend you can reverse-continue to any stop, including signals, watchpoints and the "history boundary" i.e. start of time. I expect the other stop types don't work well yet. I plan to work on them next. We can delay adding the CLI for reverse-continue until they work adequately.

> But once "in the past" you wouldn't be able to do either forward or reverse steps, you are just going to navigate by breakpoint?

After reverse-continue you can do any kind of forward execution you want. With LLDB + rr, you're always "in the past" since during debugging rr always/only navigates history; when you're at a certain point in time the state of LLDB and rr is independent of whether you got there by forward or reverse execution. And LLDB + rr is pretty much fully functional already --- except for the absence of reverse-execution commands.

https://github.com/llvm/llvm-project/pull/99736


More information about the lldb-commits mailing list