This is an archive of the discontinued LLVM Phabricator instance.

[Reproducer] Add `reproducer dump` command
ClosedPublic

Authored by JDevlieghere on Sep 11 2019, 5:17 PM.

Details

Summary

This adds a reproducer dump commands which makes it possible to inspect a reproducer from inside LLDB. Currently it supports the Files, Commands and Version providers. I'm planning to add support for the GDB Remote provider in a future patch.

Diff Detail

Event Timeline

JDevlieghere created this revision.Sep 11 2019, 5:17 PM

If I've run lldb like:

$ lldb -capture-path <PATH>

and then I want to dump the reproducer I've loaded, it seems annoying to have to say:

(lldb) reproducer dump -f <PATH>

Why do I need to type it again? So it seems like you could make -f optional, and if it isn't provided use the currently loaded reproducer?

Inspect the current reproducer when in replay mode and no path is specified.

Thanks for the suggestions, Jim!

The help for -f should say what happens if this option isn't provided. Otherwise this looks fine.

jingham accepted this revision.Sep 13 2019, 4:08 PM

Approved with that addition.

This revision is now accepted and ready to land.Sep 13 2019, 4:08 PM
This revision was automatically updated to reflect the committed changes.