Fabio Dell'Aria wrote:
Hi,
2008/1/16, Peter Vreman <[EMAIL PROTECTED]>:
At 18:37 16-1-2008, you wrote:
Hi,
2008/1/16, Christian U. <[EMAIL PROTECTED]>:
OK guys now I OFFICIALLY close this very long, long thread! :)
Are you trying to create an patch ?
If not please inform me than i will do.
I have just found a method to move ALL the debug data and symbols to
an external .dbg file, obtaining a just stripped compiled file and the
full debug functionalities (only with the .dbg file presents).
Currently I must execute 3 steps to obtain this (after every compilation).
I'm working to can do all with a single step (just on beta testing)! :)
I can see only 2 steps:
$ objcopy -R .text -R .data lazarus.exe lazarus1.dbg
$ strip lazarus.exe
Resulting files:
-rwxr-xr-x 1 peter None 41551141 Jan 16 18:50 lazarus.dbg
-rwxrwxrwx 1 peter None 7610368 Jan 16 18:51 lazarus.exe
And for debugging:
$ gdb lazarus.exe
(gdb) br main
No symbol table is loaded. Use the "file" command.
(gdb) symbol-file lazarus1.dbg
Reading symbols from /cygdrive/d/lazarus/lazarus.dbg...done.
(gdb) br main
Breakpoint 1 at 0x401bf9: file lazarus.pp, line 77.
(gdb)
I need 3 steps because I don not change the mode lazarus call the GDB.
After my changes just a lazarus run to can use a stripped (as
--strip-all) compiled file with all the debug data in an external file
(and is possible debug also the LCL).
Peter
Wait a moment ! If this is possible with command line gdb, then it must
be possible also from Lazarus IDE,right ? Or from executable itself to
create stacktrace ? Could I just strip executable and provide external
file .dbg and still get full stacktrace in case of exception ?
Regards
Boguslaw
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives