<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>Hi all LLVMdev!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>Here is a question: <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>I try to understand how I can realize a debugging in
LLVM!?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>I have written a back end for my target and now I need
a debug.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=5 face="Times New Roman"><span lang=EN-US
style='font-size:16.0pt'>I asked developers Chris Lattner and <font
color=black><span style='color:black'>Robert L. Bocchino. They recommend me ask
the </span></font></span></font><font size=4><span lang=EN-US style='font-size:
14.0pt'>LLVMdev.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>Is there</span></font><font size=5><span lang=EN-US
style='font-size:16.0pt'> a tool like "llvm-db" about Robert said?</span></font><font
size=4><span lang=EN-US style='font-size:14.0pt'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face="Times New Roman"><span lang=EN-US
style='font-size:14.0pt'>Here a mail from Robert:</span></font><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><u><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>On Jun 29, 2009, at 17:14 PM, <font color=black><span
style='color:black'>Robert L. Bocchino Jr</span></font> wrote:<o:p></o:p></span></font></u></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Hi Artem, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Thanks for your interest in LLVM.  I haven't ever
used LLVM for source-level debugging.  From scanning that page
(SourceLevelDebugging.html) it seems to describe the format that LLVM bytecode
uses to encode debug information, but it doesn't say anything about what tool
to use or how to use it to actually to the debugging.  I think gdb would
not work with this, because gdb doesn't understand anything about the LLVM
bytecode representation -- you'd need some gdb-like tool that works with LLVM
this way.  I seem to recall there was a tool "llvm-db" but I
don't see that described on the site now.  I think your best bet is to
email llvm-dev with this question, or maybe ask Chris Lattner or Jim Laskey
(the authors of the debug info document) to point you in the right direction.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Rob<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><u><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>On Jun 26, 2009, at 1:21 PM, Rudskyy wrote:<o:p></o:p></span></font></u></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'><span
style='WIDOWS: 2;ORPHANS: 2;-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;word-spacing:0px'>Hallo, Robert L. Bocchino Jr.!<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>I have
found you in LLVM Developers page (<a href="http://llvm.org/developers.cgi"
title="blocked::http://llvm.org/developers.cgi">http://llvm.org/developers.cgi</a>).<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>First
thank you for all of your work with LLVM.<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'><O:P> </O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>About:<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>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">http://hilscher.com/netx...html</a>).<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>So
C-code already possible compile to the native xPEC assembly code (works
perfect! LLWM a big power!).<O:P></O:P></span></font></i><i><font size=2
color=black><span lang=EN-US style='font-size:10.0pt;color:black;font-style:
italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>Now I
need to debug the source C-code, that I compile for xPEC-processor. I have read
the article “Source Level Debugging with LLVM” (<a
href="http://llvm.org/docs/SourceLevelDebugging.html"
title="blocked::http://llvm.org/docs/SourceLevelDebugging.html">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<a href="http://sourceware.org/gdb/"
title="blocked::http://sourceware.org/gdb/">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></i><i><font size=2 color=black><span
lang=EN-US style='font-size:10.0pt;color:black;font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>Problem:<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>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></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>Do you
can help me what must I read and search ore recommend somebody to can?<O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'><O:P> </O:P> </O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'>Best
regards,<O:P></O:P></span></font></i><i><font size=2 color=black><span
lang=EN-US style='font-size:10.0pt;color:black;font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><st1:PersonName w:st="on"><i><font size=2 color=black
 face=Arial><span lang=EN-US style='font-size:10.0pt;font-family:Arial;
 color:black;font-style:italic'>Artem Rudskyy<O:P></O:P></span></font></i></st1:PersonName><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'><a
href="http://www.uni-magdeburg.de/ieat/robotslab/"
title="blocked::http://www.uni-magdeburg.de/ieat/robotslab/">http://www...uni-magdeburg.de/ieat/robotslab/</a><O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black;font-style:italic'><a
href="http://www.uni-magdeburg.de/"
title="blocked::http://www.uni-magdeburg.de/">http://www.uni-magdeburg.de/</a><O:P></O:P></span></font></i><i><font
size=2 color=black><span lang=EN-US style='font-size:10.0pt;color:black;
font-style:italic'><o:p></o:p></span></font></i></p>

<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:black'><O:P> </O:P></span></font><font
color=black><span lang=EN-US style='color:black'><o:p></o:p></span></font></p>

</span>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p style='margin:0cm;margin-bottom:.0001pt'><font size=3 face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt'>Robert L. Bocchino Jr.<o:p></o:p></span></font></p>

<p style='margin:0cm;margin-bottom:.0001pt'><font size=3 face="Times New Roman"><span
lang=EN-US style='font-size:12.0pt'>Ph.D. Student<o:p></o:p></span></font></p>

<p style='margin:0cm;margin-bottom:.0001pt'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>University of Illinois, Urbana-Champaign<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

</div>

</body>

</html>