[Lldb-commits] [lldb] r351250 - Simplify Value::GetValueByteSize()
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 16 08:50:06 PST 2019
On 16/01/2019 17:38, Adrian Prantl wrote:
>> On Darwin I'm getting an also very misleading
>>
>> (lldb) target var ref
>> (void (&)(bool)) ref = 0x0000000100000920 (&::ref = <out of memory>)
> Wait, no. I reverted the wrong patch:-(
> I get <Unable to determine byte size.> vs <out of memory>.
> I assume that's what's happening on Windows, too. If that's the case I should be able to do something.
>
> -- adrian
>
Yes that's the same behavior I observed.
"out of memory" is definitely wrong here, though I'm not sure if "Unable
to determine byte size" is correct either. I guess the best behavior
would be to just print "cannot display a function" (if I understand
correctly that this code is trying to print the "dereferenced" value),
or just nothing.
More information about the lldb-commits
mailing list