LLDB is explicitly creating the .lldb directory for the user (see Editline.cpp -> GetHistoryFilePath). Is this also happening in a more recent LLDB version? It’s working for me on the latest release on Arch.
> On Apr 20, 2020, at 4:34 PM, Andrzej Warzynski via lldb-dev > <lldb-dev@lists.llvm.org> wrote: > > 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. > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev