While trying to fix Bug 7182 (see
http://www.freepascal.org/mantis/view.php?id=7182), I used the debugger to set breakpoints. After some changes, I am now unable to use the debugger again. I tried to uninstall everything and reload/install the whole stuff again, but each time I add debug information (-g or -gl) the DLL seems to be not valid. The debug output is:
(gdb)
&"Warning:\n"
&"Cannot insert breakpoint 2.\n"
&"Error accessing memory address $110f: Input/output error.\n"
&"\n"
^error,msg="Warning:\nCannot insert breakpoint 2.\nError accessing memory address $110f: Input/output error.\n"
(gdb)And if I run the project (I specified a host application to run the DLL), nothing happens. If I stop the project and run again, it works fine except the fact, that any breakpoint is ignored.
If I remove the breakpoints or don't include debug information, everything works fine from the start (except that I do not have the ability to debug).
Hint: If I compile with debug information, UPX is unable to pack the EXE (regardless if I strip the file or not). Furthermore the Checksum in the PE header is wrong (=0!).
I've tried nearly every option (including smart linking, internal linker for FPC 2.1.1 ans FPC 2.0.4)
Any ideas?
Christian