ZXDunny
Deep avatar
- Joined
- Oct 12, 2010
- Messages
- 2,585
Ok, Got stuff compiling and more surprisingly running well here. My previous demos have been with an incomplete BASIC interpreter, and now I'm getting ready to release this thing.
I'm compiling with FPC 2.4.2 currently and due to differences in behaviour with pointers as opposed to the x86 version of the compiler, I'm running into bugs. Problem is, I'm used to coding in Delphi and the debugging suite is just fantastic in that IDE. Not so on the Pandora, however. So...
Given that this is (currently) a full-screen SDL app, how do I debug when things go wrong? I can generate GDB files and include debug info, but how do I get it? All I get is an Access Violation at such-and-such an address. Delphi will halt the program and jump to the source line that caused the error, but I'm forced to run in a terminal on the Pandora, as it's not capable of running Lazarus
I've tried GDB, and that runs the app but when it causes the access violation the whole pandora locks up to the point that all I can do is hard-reboot.
So now I'm reduced to inserting log entries at strategic points Oh, and as I'm in windows, having to swap SD cards to get the new binary onto the pandora is a pain. I've tried wifi networking, but the speed is incredibly slow (about 30 secs to transfer a 2.8mb file!). Any suggestions? I've also tried using SD Mass-Storage mode, but it's a gamble as to whether or not the card will be visible to the main PC when it's active
The other thing is this: SDL is bloody slow - is there any way to access the screen directly (bearing in mind I'm not coding in C)?
Cheers,
D.
I'm compiling with FPC 2.4.2 currently and due to differences in behaviour with pointers as opposed to the x86 version of the compiler, I'm running into bugs. Problem is, I'm used to coding in Delphi and the debugging suite is just fantastic in that IDE. Not so on the Pandora, however. So...
Given that this is (currently) a full-screen SDL app, how do I debug when things go wrong? I can generate GDB files and include debug info, but how do I get it? All I get is an Access Violation at such-and-such an address. Delphi will halt the program and jump to the source line that caused the error, but I'm forced to run in a terminal on the Pandora, as it's not capable of running Lazarus
I've tried GDB, and that runs the app but when it causes the access violation the whole pandora locks up to the point that all I can do is hard-reboot.
So now I'm reduced to inserting log entries at strategic points Oh, and as I'm in windows, having to swap SD cards to get the new binary onto the pandora is a pain. I've tried wifi networking, but the speed is incredibly slow (about 30 secs to transfer a 2.8mb file!). Any suggestions? I've also tried using SD Mass-Storage mode, but it's a gamble as to whether or not the card will be visible to the main PC when it's active
The other thing is this: SDL is bloody slow - is there any way to access the screen directly (bearing in mind I'm not coding in C)?
Cheers,
D.