Is supposed that with the -gl and the BackTraceStrFunc would get all the info with the line number as well? Because if is true i've seen not work and could test again.<br><div class="gmail_quote">2012/2/20 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Am 20.02.2012 16:34, schrieb Martin:<div><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
If you do not want to ship with debug info:<br>
<br>
- compile with debug info<br>
- keep a copy of the file with debug info<br>
- use strip[.exe] to remove the debug info from shipping version<br>
- dump addresses<br>
<br>
when you get the addresses, you can use gdb and the copy with debug info<br>
that you kept (must match 100% the shipped version)<br>
<br>
you will need a smass script calling gdb for each address<br>
<br>
<br>
gdb.exe -i mi project1.exe --eval-command="info line *0x428f60"<br>
--eval-command=q<br>
</blockquote>
<br></div>
Alternatively - as I already wrote:<br>
<br>
- compile with "-Xg"<br>
- keep the appname.dbg file<br>
- dump addresses<br>
<br>
command to use:<br>
<br>
gdb.exe -i mi project1.exe --symbols=project1.dbg --eval-command="info line *0x428f60" --eval-command=q<br>
<br>
Regards,<br>
Sven<div><div><br>
______________________________<u></u>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/<u></u>mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Everton Vieira.<br>