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

Ilia K via lldb-dev lldb-dev at lists.llvm.org
Mon Jun 20 01:45:23 PDT 2016


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\\\"hello\\\"\\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 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> 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 at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>


-- 
- Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160620/361b69cf/attachment.html>


More information about the lldb-dev mailing list