Am 20.02.2012 16:34, schrieb Martin:
If you do not want to ship with debug info:
- compile with debug info
- keep a copy of the file with debug info
- use strip[.exe] to remove the debug info from shipping version
- dump addresses
when you get the addresses, you can use gdb and the copy with debug info
that you kept (must match 100% the shipped version)
you will need a smass script calling gdb for each address
gdb.exe -i mi project1.exe --eval-command="info line *0x428f60"
--eval-command=q
Alternatively - as I already wrote:
- compile with "-Xg"
- keep the appname.dbg file
- dump addresses
command to use:
gdb.exe -i mi project1.exe --symbols=project1.dbg --eval-command="info
line *0x428f60" --eval-command=q
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal