I see the following error:<br><br>(etrace-0.82-b2-dev@local) traces add foo<br><br>        [*] Unable to add func at 0x08048394 into trace               &lt;-----------------------<br>        [*] Added function foo successfully into trace global<br>
<br><br>Can you profile-warn for the traces command too ?<br><br>Also, make sure you use the trace commands in the same way as in the example of the testsuite (testsuite/tracing)<br><br>Julien<br><br><br><div class="gmail_quote">
On Tue, Sep 15, 2009 at 12:46 PM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com">groleo@gmail.com</a>&gt;</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;">
I managed to get the profiler to print the section name. This is the first page of tracerun with profile enable warn<div class="im"><br><br><br>(etrace-0.82-b2-dev@local) tracerun<br><br></div><div class="im"> [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br>

 [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_reloc@reloc.c:279&gt;              Unable to get reloc section<br></div> [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>

 [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_macinfo]<div class="im"><br> [W]            &lt;elfsh_get_dwarf_macinfo@dwarf.c:301&gt;      Unable to find Dwarf abbrev table<br>
</div> [W]             &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>
 [W]            &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.stab]<div class="im"><br> [W]           &lt;elfsh_get_stab@stab.c:63&gt;                 Unable to get STABS by name<br></div> [W]             &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>

 [W]            &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.stab]<div><div></div><div class="h5"><br> [W]           &lt;elfsh_get_stab@stab.c:63&gt;                 Unable to get STABS by name<br>
 [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br>
 [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_verdeftab@version.c:1408&gt;       Unable to find Definition Version section<br> [W]           &lt;elfsh_get_notes@notes.c:59&gt;               Corrupted Notes section<br>

 [W]            &lt;elfsh_get_sym_by_value@sym_common.c:308&gt;  No exact symbol matching<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>

 [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>

 [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>

 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>

 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>

 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>

 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>

 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>

 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>

 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>

 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]            &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br></div></div> [W]           &lt;elfsh_get_pht@pht.c:538&gt;                  Unable to load PHT<div class="im">
<br>
 [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br> [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_reloc@reloc.c:279&gt;              Unable to get reloc section<br>
</div>
 [W]                &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]               &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.interp]<br> [W]              &lt;elfsh_get_interp@interp.c:63&gt;             Unable to get .interp by name<br>

 [W]                &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]               &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.interp]<br> [W]              &lt;elfsh_get_interp@interp.c:63&gt;             Unable to get .interp by name<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_info]<br> [W]            &lt;elfsh_get_dwarf_info@dwarf.c:71&gt;          Unable to find Dwarf info table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_abbrev]<br> [W]            &lt;elfsh_get_dwarf_abbrev@dwarf.c:117&gt;       Unable to find Dwarf abbrev table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_aranges]<br> [W]            &lt;elfsh_get_dwarf_aranges@dwarf.c:163&gt;      Unable to find Dwarf aranges table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_frame]<br> [W]            &lt;elfsh_get_dwarf_frame@dwarf.c:209&gt;        Unable to find Dwarf frame table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_line]<br> [W]            &lt;elfsh_get_dwarf_line@dwarf.c:255&gt;         Unable to find Dwarf line table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_macinfo]<div class="im">
<br> [W]            &lt;elfsh_get_dwarf_macinfo@dwarf.c:301&gt;      Unable to find Dwarf abbrev table<br></div>
 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_pubnames]<br> [W]            &lt;elfsh_get_dwarf_pubnames@dwarf.c:347&gt;     Unable to find Dwarf pubnames table<br>

 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_str]<br> <br><br><div class="gmail_quote">
<div class="im">
On Tue, Sep 15, 2009 at 8:59 PM, Julien Vanegue <span dir="ltr">&lt;<a href="mailto:julien.vanegue@gmail.com" target="_blank">julien.vanegue@gmail.com</a>&gt;</span> wrote:<br></div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>Etrace has never been tested on C++ and the reason why it doesnt work I think is because mangled symbols, for which we have no support.</div>
<div> </div>
<div>I guess supporting a C++ aware  e2dbg/etrace would be a nice project but we have no resource for it by now!</div>
<div> </div>
<div>Julien<br><br></div>
<div class="gmail_quote">On Tue, Sep 15, 2009 at 1:10 AM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi,<br><br>I&#39;ve checked out the svn tree and run a simple test to see if etrace can<br>

trace a foo() function inside a c++ program. I tried to trace using<br>
the _Z encoded function name but with no luck; does etrace support<br>tracing c++ symbols ?<br clear="all"><font color="#888888"><br>-- <br>Regards, Groleo!<br></font><br>_______________________________________________<br>


eresi-dev mailing list<br><a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br><a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>


<br></blockquote></div><br>
<br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Regards, Groleo!<br>
</font><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br>