[lldb-dev] Error when using lldb-mi built with LLDB_DISABLE_PYTHON

Pierson Lee (PIE) via lldb-dev lldb-dev at lists.llvm.org
Tue Jun 21 16:22:14 PDT 2016

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.


From: Ilia K [mailto:ki.stfu at gmail.com]
Sent: Monday, June 20, 2016 1:45 AM
To: Pierson Lee (PIE) <Pierson.Lee at microsoft.com>
Cc: lldb-dev at lists.llvm.org
Subject: Re: [lldb-dev] Error when using lldb-mi built with LLDB_DISABLE_PYTHON


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)
-    return false;
+    return true;
     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 at lists.llvm.org<mailto:lldb-dev at lists.llvm.org>> wrote:

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:' (ID:'MIDriver') initialise failed. Driver. LLDB Debugger.

Am I missing something?


lldb-dev mailing list
lldb-dev at lists.llvm.org<mailto:lldb-dev at lists.llvm.org>

- Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160621/63636dc0/attachment-0001.html>

More information about the lldb-dev mailing list