[lldb-dev] Checkpoint/Restart with LLDB ?

Frédéric Riss via lldb-dev lldb-dev at lists.llvm.org
Tue Dec 11 08:30:17 PST 2018



> On Dec 10, 2018, at 10:13 AM, Gábor Márton via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
> Is there an LLDB counterpart to GDB's Checkpoint/Restart feature (https://sourceware.org/gdb/onlinedocs/gdb/Checkpoint_002fRestart.html <https://sourceware.org/gdb/onlinedocs/gdb/Checkpoint_002fRestart.html>)? I could not find anything here http://lldb.llvm.org/lldb-gdb.html <http://lldb.llvm.org/lldb-gdb.html>. Is there a way to mimic that feature somehow on macOS (or do reverse debugging) ?

At least for macOS, the checkpoint/restart scheme using forks to save previous state won’t work in general. Many system frameworks as well as the pthread stack will start misbehaving if a fork is not followed immediately by an exec.

Fred 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181211/058f25d2/attachment.html>


More information about the lldb-dev mailing list