Hi Ilia, Thanks for the reply. I did #1 for our workaround for the time being and opened https://llvm.org/bugs/show_bug.cgi?id=28253.
Thanks! -Pierson From: Ilia K [mailto:ki.s...@gmail.com] Sent: Monday, June 20, 2016 1:45 AM To: Pierson Lee (PIE) <pierson....@microsoft.com> Cc: lldb-dev@lists.llvm.org Subject: Re: [lldb-dev] Error when using lldb-mi built with LLDB_DISABLE_PYTHON Hi! Unfortunately, this is a regression introduced in r251082. From that moment lldb-mi requires LLDB_DISABLE_PYTHON=0 for showing wide chars: char16/char32 types. If you cannot enable python support, I suggest you to: 1. ignore MI_add_summary's errors by returning TRUE: ``` Index: tools/lldb-mi/MICmnLLDBDebugger.cpp =================================================================== --- tools/lldb-mi/MICmnLLDBDebugger.cpp (revision 273137) +++ tools/lldb-mi/MICmnLLDBDebugger.cpp (working copy) @@ -58,7 +58,7 @@ uint32_t options, bool regex = false) { #if defined(LLDB_DISABLE_PYTHON) - return false; + return true; #else lldb::SBTypeSummary summary = lldb::SBTypeSummary::CreateWithCallback(cb, options); return summary.IsValid() ? category.AddTypeSummary(lldb::SBTypeNameSpecifier(typeName, regex), summary) : false; ``` In this case, wide chars will not be expanded unlike simple chars: ``` (gdb) -var-create - * cp ^done,name="var7",numchild="1",value="0x0000000000400cb4 \"\\t\\\<file://t//>"hello\\\"\\n\<file://n/>"",type="const char *",thread-id="1",has_more="0" (gdb) -var-create - * u16p ^done,name="var9",numchild="1",value="0x0000000000400d64",type="const char16_t *",thread-id="1",has_more="0" ``` 2. or you can try to revert r251082. Please fill a bug report on llvm.org/bugs<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fllvm.org%2fbugs&data=01%7c01%7cPierson.Lee%40microsoft.com%7c49f011e335c8436a02fc08d398e739a5%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=8EJ1X0DsyxwIj%2fqcqpJCk2sC0s9klrHCnuULFDtE7wc%3d> and tell me if you have other issues. On Sat, Jun 18, 2016 at 3:35 AM, Pierson Lee (PIE) via lldb-dev <lldb-dev@lists.llvm.org<mailto:lldb-dev@lists.llvm.org>> wrote: Hi, I’ve built lldb on tag release_38 (3.8.1) with the flag LLDB_DISABLE_PYTHON=1 and I’m getting the below error when running lldb-mi: MI: Error: Driver. LLDB Debugger. MI: Error: Driver Manager. Driver 'Machine Interface Driver Version: 1.0.0.9' (ID:'MIDriver') initialise failed. Driver. LLDB Debugger. Am I missing something? Thanks Pierson _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org<mailto:lldb-dev@lists.llvm.org> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.llvm.org%2fcgi-bin%2fmailman%2flistinfo%2flldb-dev&data=01%7c01%7cPierson.Lee%40microsoft.com%7c49f011e335c8436a02fc08d398e739a5%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=65c28r8Umx3xL0BswYFrR%2b%2bUKdDBUbUdWiKhXz6It18%3d> -- - Ilia
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev