<br><br>Hi,<br><br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 11:11 PM, Julien Vanegue <span dir="ltr"><<a href="mailto:julien.vanegue@gmail.com">julien.vanegue@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi Marius</div>
<div>Btw, Can you reproduce the test in testsuite/tracing/ ? (this is known to work)</div>
<div></div></blockquote><div>Yes, I started from host.c and removed code till I hit a non-traceable binary;<br>
<br>
----------------------------------<br>
Traceable <br>
#include <stdio.h><br>
<br>
void testcrypt()<br>
{<br>
}<br>
<br>
int main()<br>
{<br>
char path[8]={0,};<br>
putchar(path[0]);<br>
}<br>
<br>
<br>
---------------------------------------------------------------------------<br>
Non-traceable<br>
#include <stdio.h><br>
<br>
void testcrypt()<br>
{<br>
}<br>
<br>
int main()<br>
{<br>
char path[7]={0,};<br>
putchar(path[0]);<br>
}<br>
--------------------------------------------------------------------------<br>
<br>
<br>
Both were compiled with:<br>
gcc -c tracer.c -o tracer.32.o -I /libstderesi/include -I
/librevm/include -I /libelfsh/include -I /libasm/include -DERESI32 -I
/libaspect/include -I /libedfmt/include -I /libmjollnir/include
-gdwarf-2 -fno-stack-protector -fno-default-inline -O0 -g<br>
<br>
See the -O0. I hope the gcc won't optimize anything.<br><br><br><br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
</div>
<div>If you want to contribute a symbol mangling function to make etrace support C++ binaries, I could tell</div>
<div>you easily how to integrate it into libelfsh :) I can remove the 0 args limit if you have an interest.</div>
<div> </div>
<div>Let me know</div>
<div> <font color="#888888"><br></font></div></blockquote><div>I would like to try and see how far I could get.<br></div></div><br><br><br>-- <br>Regards, Groleo!<br>