I wrote a lldb type summary provider for wstring with 16bit wchar on Ubuntu
16.04.Things work fine if I manually do the following in lldb:(lldb) script
import mytypes
(lldb) type summary add -F mytypes.wstring_SummaryProvider "std::__1::wstring"
I tried to make things easier with auto-loading by adding the following to
.lldbinit:script import mytypes
type summary add -F mytypes.wstring_SummaryProvider "std::__1::wstring"
Then I got a failure of "SBProcess is invalid" when printing a wstring
variable.My type summary function has the following, which I believe is where
the error is encountered:content = lldb.process.ReadMemory(bufferAddr,
byteCount, error)
Maybe this is because "process" is not assigned yet when the type summary is
added during auto-loading? Or this is a bug in lldb? Does anyone know how to
work around this issue? Thanks much
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev