<font class="Apple-style-span" color="#333333" face="arial, sans-serif"><div><div>But the error is related to a conversion between llvm and gcc in "gcc-program.s -o program"?</div><div>I need to use GDB to make an extraction of the information generated by GDB.</div>
<div><br></div><div>For other programs, the process that wrote the first post worked perfectly, except for some.</div><div>That this is the problem, for the compilation is the need to inform the -lm to link math libraries. It could be related to this -lm argument ?</div>
</div></font><br><div class="gmail_quote">2011/11/22 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr">baldrick@free.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Rafael,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
it is my program that dies.<br>
</blockquote>
<br></div>
try running it under valgrind.<br>
<br>
Ciao, Duncan.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
Moreover, if I run ./program.native, it works.<br>
<br>
You are missing something?<br>
<br>
<br></div>
2011/11/22 Duncan Sands <<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a> <mailto:<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>>><div class="im"><br>
<br>
    Hi Rafael, is it your program that dies with a segfault, or is it gdb that dies?<br>
<br>
    Ciao, Duncan.<br>
<br>
     > I have a problem with the generation of native code.<br>
     > I'm wanting to run a native code with GDB.<br>
     > When I run the program with "/lli program.bc/ -> OK,<br>
     > but if I do /"llc program.bc -o program.s/ " and then "/gcc -g program.s -o<br>
     > program.native/" results in an error when running under GDB.<br>
     ><br>
     > Error = Segmentation fault.<br>
     ><br>
     > How can I solve this problem?<br>
     ><br>
     > Bye<br>
     ><br>
     > --<br>
     > */Rafael Parizi/*<br>
     ><br>
     ><br>
     ><br>
     ><br>
     ><br>
     > ______________________________<u></u>_________________<br>
     > LLVM Developers mailing list<br></div>
     > <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><div class="im">
<br>
     > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
    ______________________________<u></u>_________________<br>
    LLVM Developers mailing list<br></div>
    <a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <mailto:<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>

    <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
--<br>
*/Rafael Parizi/*<br>
<br>
<br>
<br>
</font></span></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font size="2"><b><i>Rafael Parizi</i></b></font><br><br><br><br>