https://llvm.org/bugs/show_bug.cgi?id=28253
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-...@lists.llvm.org Reporter: pierson....@microsoft.com CC: llvm-bugs@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: 1.0.0.9' (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) { #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 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 on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs