[fpc-devel] A Compiled file size solution from the GBD mailing-list

Marco van de Voort marcov at stack.nl
Wed Jan 16 12:47:12 CET 2008


> I have asked to the official GDB mailing list, if is possible debug a
> program using as debug symbols an external files.
> 
> The answer is yes (there are two method to do this).
> 
> You can read the full answer here:
> http://sourceware.org/ml/gdb/2008-01/msg00119.html
> 
> I hope this can help we.

Did you test it?

(gdb) help symbol
Load symbol table from executable file FILE.
The `file' command can also load symbol tables, as well as setting the file
to execute.
(gdb)

from _EXECUTABLE_ file FILE, iow you still need the unstripped exe.

It's like calling 

copy file1.exe file-debug.exe
strip file1.exe

and then pass file-debug.exe to gdb also.




More information about the fpc-devel mailing list