[lldb-dev] How to preserve command history?

Andrzej Warzynski via lldb-dev lldb-dev at lists.llvm.org
Mon Apr 20 07:34:20 PDT 2020


Hello,

I've just tried using lldb on Ubuntu* and I couldn't get the command
history to work. More specifically, the command history was not
preserved between the sessions. IIUC, one has to create the lldb-history
file for this to work:

mkdir -p ~/.lldb/
touch ~/.lldb/lldb-history

This is rather non-obvious and AFAIK undocumented solution (and very
different to what's required with GDB).

Is there a better way to achieve this? Would it make sense to update the
docs with this information (e.g.
https://lldb.llvm.org/man/lldb.html#configuration-files)? I'm happy to
submit a patch.

Thanks,
-Andrzej

* lldb-8 on Ubuntu 16.04
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the lldb-dev mailing list