Hi all, I'm a relative PalmOS newbie, and I've recently started work on my first serious PalmOS application. I'm using PRC-tools on Linux, testing using POSE with GDB and DDD. It's been pretty smooth sailing so far -- a bit of frustration getting everything set up, but once that was done, it all worked very well, and my project was motoring along fine. The code has grown to about 150 kilobytes (compiled) by now, so every once in a while I have to fiddle with code sections, but other than that, I might as well be developing for any other platform.
Then today suddenly all hell broke loose. I'm getting all sorts of nasty problems: calls to functions crash without the function ever being reached; looking up functions in the debugger gives file positions that are wildly off, or the debugger claims that no line number information exists at all; when single-stepping through code, suddenly execution resumes, even though I never said 'cont', only 'step'; functions get stepped over instead of into even though I'm using 'step'. Nothing has changed in my project configuration recently. Everything is compiled and linked using the -g switch; the compilation, linking and build-prc steps all run without incident and without any warnings, and the PRC seems to work (but when it doesn't I'm not unable to debug it!). My first hunch was I was running out of globals or maybe my code was accidentally corrupting the cross-section jump table, but moving some constant data structures into the text segment did not help, and besides, the weird behavior, such as being unable to look up functions, is already in effect when the debugger traps the PilotMain call, i.e. before my code has had the chance to mess things up. Also, if I was running out of globals, wouldn't the linker tell me? I'm stuck and I have absolutely no idea where to go from here. Do the symptoms I have described sound familiar to anyone? I would be very grateful for any insights as to what might have gone wrong. Thanks! - Thomas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
