[lldb-dev] [Bug 28253] New: lldb-mi Regression with LLDB_DISABLE_PYTHON=1

via lldb-dev lldb-dev at lists.llvm.org
Tue Jun 21 16:14:36 PDT 2016


            Bug ID: 28253
           Summary: lldb-mi Regression with LLDB_DISABLE_PYTHON=1
           Product: lldb
           Version: 3.8
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: pierson.lee at microsoft.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When running self-built lldb-mi(3.8.1) with LLDB_DISABLE_PYTHON=1, on execution
time, I'm getting: 

MI: Error: Driver. LLDB Debugger.
MI: Error: Driver Manager. Driver 'Machine Interface Driver Version:'
(ID:'MIDriver') initialise failed. Driver. LLDB Debugger.

Ilia K helped me determine that it is due to r251082 change.

The suggested workaround is: 

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,
     return summary.IsValid() ?
category.AddTypeSummary(lldb::SBTypeNameSpecifier(typeName, regex), summary) :

In this case, wide chars will not be expanded unlike simple chars:
(gdb) -var-create - * cp
\"\\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

2. or you can try to revert r251082

I did #1 but would probably like wide chars to be expanded (which it does not
with the workaround).

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160621/0a5438d1/attachment.html>

More information about the lldb-dev mailing list