<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Do you see the same issue if you build from master?<br class=""><div><br class=""></div><div>Alex</div><div><br class=""><blockquote type="cite" class=""><div class="">On 7 Oct 2017, at 00:30, Sam Ding via swift-dev <<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class=""><font size="2" class="">Hi,</font><br class=""><br class=""><font size="2" class="">I build swift compiler (v4.0) with debug mode ("-d"), however when debugging compiler swift code, it can not</font><br class=""><font size="2" class="">show the variable value. Here is an example:</font><br class="">
</p><ul class=""><ul class=""><font size="2" class=""> frame #0: 0x00007ffff761d50c libswiftCore.so`_allocateUninitializedArray<A>(builtinCount=1) at Arrays.swift:3347</font><br class=""><font size="2" class=""> 3344 func _allocateUninitializedArray<Element>(_ builtinCount: Builtin.Word)</font><br class=""><font size="2" class=""> 3345 -> (Array<Element>, Builtin.RawPointer) {</font><br class=""><font size="2" class=""> 3346 let count = Int(builtinCount)</font><br class=""><font size="2" class="">-> 3347 if count > 0 {</font><br class=""><font size="2" class=""> 3348 // Doing the actual buffer allocation outside of the array.uninitialized</font><br class=""><font size="2" class=""> 3349 // semantics function enables stack propagation of the buffer.</font><br class=""><font size="2" class=""> 3350 let bufferObject = Builtin.allocWithTailElems_1(</font><br class=""><font size="2" class="">Target 0: (ww) stopped.</font><br class=""><font size="2" class="">(lldb)</font><font size="2" color="#0000FF" class=""> p count</font><br class=""><font size="2" color="#E12000" class="">error: in auto-import:</font><br class=""><font size="2" color="#E12000" class="">failed to get module 'Builtin' from AST context</font><br class=""><font size="2" class="">(lldb)</font></ul></ul><br class=""><font size="2" class="">This happens on both x86_64 and s390x platforms. </font><br class=""><font size="2" class="">Is there any way to make the debugger show the variable values?</font><br class=""><br class=""><font size="2" class="">Thanks,</font><br class=""><br class=""><font size="2" class="">Sam Ding,</font><br class=""><font size="2" class="">Linux on z Systems Open Source Ecosystem</font><br class=""><font size="2" class="">IBM Toronto Lab, <br class=""></font><font size="2" color="#0000FF" class="">email: </font><font size="2" class=""><a href="mailto:samding@ca.ibm.com" class="">samding@ca.ibm.com</a></font><br class=""><font size="2" color="#0000FF" class="">phone:</font><font size="2" class=""> (905)413-2947</font><br class="">
</div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>