[Lldb-commits] [PATCH] D72823: [Reproducers] Add a tool to transparently capture and replay lldb sessions

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 15 20:52:24 PST 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, friss.
Herald added a subscriber: mgorny.
Herald added a project: LLDB.

This patch introduces a small new tool `(lldb-repro`) to transparently capture and replay debugger sessions from the driver. The goal is to run the shell tests, generate a reproducers for each one of them, and then run the shell tests again, this time replaying the reproducer. I could've implemented all this in LLDB, but I felt a separate tool would be better.

Right now this requires you to swap out `lldb` and `lldb-repro`. I hope to find a way to automate that so you can pass `--param=run_with_lldb_repro=capture` and `--param=run_with_lldb_repro=replay` to lit directly.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D72823

Files:
  lldb/test/Shell/Reproducer/lit.local.cfg
  lldb/test/Shell/lit.cfg.py
  lldb/tools/CMakeLists.txt
  lldb/tools/lldb-repro/CMakeLists.txt
  lldb/tools/lldb-repro/lldb-repro.cpp
  lldb/tools/lldb-repro/lldb-repro.h.cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72823.238413.patch
Type: text/x-patch
Size: 5631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200116/1fdabf07/attachment-0001.bin>


More information about the lldb-commits mailing list