Debugging x86Lets using CW for Windows
If you've got a merged installation of CodeWarrior for Palm OS and CodeWarrior for Windows, you can use the common IDE to help you debug your x86Lets, DLLs that plug into the Palm OS Simulator and let you use the PceNativeCall interface without having actual hardware.
The key is to use CodeWarrior's "Runtime Settings" panel. In the project that builds your x86Let, set the Host Application for your DLL to the be appropriate PalmSim.exe file from the simulator folder. You can also set the target settings panel to output the DLL to the same folder as PalmSim.exe, so you don't need to include the path to the file in your call to PceNativeCall.
Once you have it setup correctly, set a breakpoint on the entry point to the DLL, turn off the breakpoint on program start setting, and hit "Debug". The Palm OS 5 Simulator will launch, and CW will attach to it, waiting for your DLL to start. Now, start a second debug session from your Palm OS app that will call this x86let. You should be able to step through your Palm OS code, and when you step over PceNativeCall in the Palm OS debugger, the x86 debugger window will become active as the breakpoint is hit from the PC side of things.
New Poll
I'm finally updated the site poll with a new question about resource file formats. CodeWarrior currently supports a number of different formats for letting you create Palm OS resources, with Constructor and its Mac OS-format files being the primary method. We're interested in finding out that format you think would be best going forward with future products. What do you want to be using a year from now to store your application's resources as part of your project? Please take a moment to let us know.

Send feedback to combee@techwood.org
Copyright © 2004 Benjamin L. Combee
Palm OS is a registered trademark of PalmSource, Inc.
Metrowerks and CodeWarrior are registered trademarks of Metrowerks Inc.
The views expressed on this website/weblog are those of mine alone and do not necessarily reflect the views of PalmSource or Metrowerks.

qwertYAK / frobnovich
|