<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Better yet, since LLDB is where we have comprehensive support for debugging Swift binaries you'll have a common debugger experience across your C/C++/Swift code.</div><div id="AppleMailSignature"><br><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="background-color: rgba(255, 255, 255, 0);"><font>Kate Stone</font>&nbsp;<font><a href="mailto:k8stone@apple.com">k8stone@apple.com</a></font></span></div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="background-color: rgba(255, 255, 255, 0);"><font></font>&nbsp;Xcode Low Level Tools</span></div></div><div><br>On Dec 17, 2015, at 3:09 PM, Joe Groff via swift-dev &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span><br><blockquote type="cite"><span>On Dec 17, 2015, at 2:57 PM, Rafkind, Jon via swift-dev &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I use gdb on linux to debug the swift binary. I find that gdb takes about 20 seconds just to read the symbols before I can even interact with gdb. I was wondering if anyone knew of a way to decrease the symbol load time, either by some gdb settings or by compiling swift/llvm/clang in such a way as to get a usefully debuggable binary but without so many symbols.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>My swift binary is a massive 1.1gb.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>$ ls -lh swift</span><br></blockquote><blockquote type="cite"><span>-rwxr-xr-x 1 jon jon 1.1G Dec &nbsp;8 18:43 swift*</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I built all of llvm/clang/swift in Debug mode.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>(Tangentially related, but using gold instead of ld to link swift is about 2-3x faster)</span><br></blockquote><span></span><br><span>You might give lldb a shot, if you haven't already. It seems to cope better with large binaries, and expr evaluation is more stable IME.</span><br><span></span><br><span>-Joe</span><br><span></span><br><span>_______________________________________________</span><br><span>swift-dev mailing list</span><br><span><a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a></span><br></div></blockquote></body></html>