<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Artem,<div><br></div><div>GDB only works with native applications.  If you compile your code to a native executable with -g, then debug info should work for you.  However, if you've built your own backend, then you may need to add the debug info hooks etc.  If you have further questions, please email the llvmdev mailing list instead of me directly, thanks!</div><div><br></div><div>-Chris</div><div><br></div><div><br><div><div>On Jun 26, 2009, at 11:11 AM, Rudskyy wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div lang="DE" link="blue" vlink="purple"><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Hallo,<span class="Apple-converted-space"> </span></span></font><font face="Arial"><span style="font-family: Arial; ">Chris Lattner</span></font><font face="Arial"><span lang="EN-US" style="font-family: Arial; ">!<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">I have found you in LLVM Developers page (<a href="http://llvm.org/developers.cgi" title="blocked::http://llvm.org/developers.cgi" style="color: blue; text-decoration: underline; ">http://llvm.org/developers.cgi</a>).<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">First thank you for all of your work with LLVM.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">About:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">I work with the<span class="Apple-converted-space"> </span><strong><b><font face="Arial"><span style="font-family: Arial; font-weight: normal; ">LLVM</span></font></b></strong><span class="Apple-converted-space"> </span>Compiler Infrastructure to implement a backend for specific processor xPEC of chip NetX (<a href="http://hilscher.com/netx.html" title="blocked::http://hilscher.com/netx.html" style="color: blue; text-decoration: underline; ">http://hilscher.com/netx..html</a>).<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">So C-code already possible compile to the native xPEC assembly code (works perfect! LLWM a big power!).<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Now I need to debug the source C-code, that I compile for xPEC-processor. I have read the article “<font color="black"><span style="color: black; ">Source Level Debugging with LLVM</span></font>” (<a href="http://llvm.org/docs/SourceLevelDebugging.html" title="blocked::http://llvm.org/docs/SourceLevelDebugging.html" style="color: blue; text-decoration: underline; ">http://llvm.org/docs/SourceLevelDebugging.html</a>), where were described that is possible to use debugger GDB. Wonderful! I have found much information about GDB (of course<span class="Apple-converted-space"> </span><a href="http://sourceware.org/gdb/" title="blocked::http://sourceware.org/gdb/" style="color: blue; text-decoration: underline; ">http://sourceware.org/gdb/</a><span class="Apple-converted-space"> </span>) and it has a debugging of remote programs.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Problem:<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">I don’t understand how must be compiled the C-code with “llvm-gcc”. Wenn I use option “-emit-llvm” [backend needs it] of course with “-g” and “-O0”,  then GDB can’t find a symbol table in bc-file.  Where will place “llvm-gcc” the symbol table for DGB? Perhaps, must GDB knows the architecture of processor? If yes, so where it must be written?   I have many questions and need some help.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Do you can help me what must I read and search ore recommend somebody to can?<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Best regards,<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; ">Artem Rudskyy<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; "><a href="http://www.uni-magdeburg.de/ieat/robotslab/" title="blocked::http://www.uni-magdeburg.de/ieat/robotslab/" style="color: blue; text-decoration: underline; ">http://www..uni-magdeburg.de/ieat/robotslab/</a><o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="3" face="Arial"><span lang="EN-US" style="font-size: 12pt; font-family: Arial; "><a href="http://www.uni-magdeburg.de/" title="blocked::http://www.uni-magdeburg.de/" style="color: blue; text-decoration: underline; ">http://www.uni-magdeburg.de/</a><o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" face="Arial"><span lang="EN-US" style="font-size: 10pt; font-family: Arial; "><o:p> </o:p></span></font></div></div></div></span></blockquote></div><br></div></body></html>