<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 20/02/2012 15:52, Everton Vieira wrote:
<blockquote
cite="mid:CAPNYM7KMx37u_KMwrtn-KDMDY8yYF_imtjXOp-MbYW+K60fphw@mail.gmail.com"
type="cite">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>
</blockquote>
It is supposed, yes.<br>
And it does for me.<br>
<br>
However I read something, someone said that it was broken at some
point for stabs or dwarf (not sure which, but only one of them.<br>
<br>
Your units seem to contain a reader for that info. it may differ
from the one shipped with fpc.... So if indeed it is true, and the
one in fpc is indeed not working (which I do not know), then that
probably needs to be bug reported ...<br>
<br>
<br>
<br>
<br>
<blockquote
cite="mid:CAPNYM7KMx37u_KMwrtn-KDMDY8yYF_imtjXOp-MbYW+K60fphw@mail.gmail.com"
type="cite">
<div class="gmail_quote">2012/2/20 Sven Barth <span dir="ltr"><<a
moz-do-not-send="true"
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>
_______________________________________________<br>
fpc-pascal maillist - <a moz-do-not-send="true"
href="mailto:fpc-pascal@lists.freepascal.org"
target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal"
target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Everton Vieira.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a></pre>
</blockquote>
<br>
</body>
</html>