A coworker set up a project on our CodeWarrior that includes three libraries that he also created. Indeed that vast majority of the code to be debugged is in those libraries. I am in the process of trying to fix his setup. The difficulty is that when we step into a function contained in one of the libraries, we see disassembly only -- no source. Can anybody give me tips on how to configure CodeWarrior so that it finds the sources for the user-defined library functions? Thanks.
Karl
已解决! 转到解答。
1) Make sure that the library code was compiled with debugging information on, especially with regards to symbolic information. Until this is done, then source-level debugging will not be possible.
2) It sounds like the libraries are in a directory different from the one used by the project. If that is the case, you need to add the library to CodeWarrior's search paths. Bring up the project's settings panel (type ALT-F7), and go to the Access paths panel. Proceed as follows:
* Make sure that User Paths is selected. Click on the Add button.
* Navigate to the directory that contains the library files. Click OK.
* The directory and its path appears in the User Paths pane.
* Check the Always Search User Paths option.
---Tom
1) Make sure that the library code was compiled with debugging information on, especially with regards to symbolic information. Until this is done, then source-level debugging will not be possible.
2) It sounds like the libraries are in a directory different from the one used by the project. If that is the case, you need to add the library to CodeWarrior's search paths. Bring up the project's settings panel (type ALT-F7), and go to the Access paths panel. Proceed as follows:
* Make sure that User Paths is selected. Click on the Add button.
* Navigate to the directory that contains the library files. Click OK.
* The directory and its path appears in the User Paths pane.
* Check the Always Search User Paths option.
---Tom
Adding the user path worked. The debugger now steps into the library modules and shows their source. The reference to the library module in the caller does not turn from black text to blue text though, but I can live with that.
Karl
didn't work for me until I found this posting in a different thread:
Before I posted, I had looked through all the configuration options in the library-build mpc and could find no option about building the lib with source info included. I'll look again, but if somebody could post a clue where to find that option, it would be a help.
Karl
Hello
-
Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
CrasyCat