[fpc-devel] A Compiled file size solution from the GBD mailing-list
Fabio Dell'Aria
fabio.dellaria at gmail.com
Wed Jan 16 12:59:31 CET 2008
Hi,
2008/1/16, Marco van de Voort <marcov at stack.nl>:
> > 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.
Why not simple add a new FPC option able to store the debug symbols in
a separated .dbg file?
--
Best regards...
Fabio Dell'Aria.
More information about the fpc-devel
mailing list