The debugger cannot open my source files (wince 5.0)
Original Reporter info from Mantis: peterT
-
Reporter name: Peter Tomcsányi
Original Reporter info from Mantis: peterT
- Reporter name: Peter Tomcsányi
Description:
I have a device with Wince 5.0
I was able to debug programs in Lazarus 0.9.28.2 without major problems.
I use the version of gdb from this link:
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/gdb-6.4-win32-arm-wince.zip
But with 0.9.30 and 0.9.30.2 Whenever the debugger stops on a breakpoint (or on a place of exception) abd should show a line in my code, I get an error saying
Unable to load "\debugtrial\unit1.pas"
The point is that my file is in "D:\debugtrial\unit1.pas". So it seems to me that the debugger for some reason does not follow the win32 file naming convention, but it "thinks" that it is running on wince and uses the naming convention of wince instead (with no drive letter d: at the beginning).
When I then click cancel, the Assembler window appears and it shows all zeroes, but after about two seconds it starts showing the correct content - my source code and the assembly language form of the resulting code.
Steps to reproduce:
-
Create any "hello world" program for Windows CE - new application with one button and its onclick event is ShowMessage('hello');
Do not forget to check "generate debugging info for GDB" in Project/Project Oprions/Compiler Options/Linking" -
Connect the device (or emulator) with wince 5.0 (or maybe lower, with higher it does not work for other reason)
-
Set a breakpoint on the first line of Button1Click (seems important to do it prior to starting the program)
-
Start the program
-
click the button on the screen of wince
-
You should see the described error
Additional information:
When debugging into Lazarus library source files then the sources are loaded correctly. Only my sources cannot be loaded.
It does not help to rename Unit1.pas to unit1.pas (lowercase).
As I wrote above, after cancelling the error message I can debug in the Assembler window, but it is a bit annoying and it should work in the Source Editor window.
Mantis conversion info:
- Mantis ID: 21061
- OS Build: Wince 5.0
- Platform: Windows
- Version: 0.9.30.2
- Monitored by: » @martin_frb (Martin Friebe)