[Lldb-commits] [lldb] r361447 - Ack, added DWARFTypeUnit to the wrong target...
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Thu May 23 10:40:01 PDT 2019
That should have been a separate commit, I was rushing to get the build unbroken.
But this is a good change, we shouldn't silently fail to load the history file, that's pretty confusing. Dumping to the edit line output file is not great but we're not running commands at this point so there's no better way to inform the user this happened.
Jim
> On May 22, 2019, at 9:39 PM, Davide Italiano <dccitaliano at gmail.com> wrote:
>
>> Modified: lldb/trunk/source/Host/common/Editline.cpp
>> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Editline.cpp?rev=361447&r1=361446&r2=361447&view=diff
>> ==============================================================================
>> --- lldb/trunk/source/Host/common/Editline.cpp (original)
>> +++ lldb/trunk/source/Host/common/Editline.cpp Wed May 22 17:12:45 2019
>> @@ -978,7 +978,9 @@ void Editline::ConfigureEditor(bool mult
>> TerminalSizeChanged();
>>
>> if (m_history_sp && m_history_sp->IsValid()) {
>> - m_history_sp->Load();
>> + if (!m_history_sp->Load()) {
>> + fputs("Could not load history file\n.", m_output_file);
>> + }
>> el_wset(m_editline, EL_HIST, history, m_history_sp->GetHistoryPtr());
>> }
>> el_set(m_editline, EL_CLIENTDATA, this);
>>
>>
>
> Did you mean to commit this part or you just had it lying around?
More information about the lldb-commits
mailing list