<html><body><p><font size="2">Hi,</font><br><br><font size="2">I build swift compiler (v4.0) with debug mode ("-d"), however when debugging compiler swift code, it can not</font><br><font size="2">show the variable value. Here is an example:</font><br>
<ul><ul><font size="2"> frame #0: 0x00007ffff761d50c libswiftCore.so`_allocateUninitializedArray<A>(builtinCount=1) at Arrays.swift:3347</font><br><font size="2"> 3344 func _allocateUninitializedArray<Element>(_ builtinCount: Builtin.Word)</font><br><font size="2"> 3345 -> (Array<Element>, Builtin.RawPointer) {</font><br><font size="2"> 3346 let count = Int(builtinCount)</font><br><font size="2">-> 3347 if count > 0 {</font><br><font size="2"> 3348 // Doing the actual buffer allocation outside of the array.uninitialized</font><br><font size="2"> 3349 // semantics function enables stack propagation of the buffer.</font><br><font size="2"> 3350 let bufferObject = Builtin.allocWithTailElems_1(</font><br><font size="2">Target 0: (ww) stopped.</font><br><font size="2">(lldb)</font><font size="2" color="#0000FF"> p count</font><br><font size="2" color="#E12000">error: in auto-import:</font><br><font size="2" color="#E12000">failed to get module 'Builtin' from AST context</font><br><font size="2">(lldb)</font></ul></ul><br><font size="2">This happens on both x86_64 and s390x platforms. </font><br><font size="2">Is there any way to make the debugger show the variable values?</font><br><br><font size="2">Thanks,</font><br><br><font size="2">Sam Ding,</font><br><font size="2">Linux on z Systems Open Source Ecosystem</font><br><font size="2">IBM Toronto Lab, <br></font><font size="2" color="#0000FF">email: </font><font size="2">samding@ca.ibm.com</font><br><font size="2" color="#0000FF">phone:</font><font size="2"> (905)413-2947</font><BR>
</body></html>