Debugger can't find Source Files for User-defined Library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugger can't find Source Files for User-defined Library

Jump to solution
3,091 Views
Karl_H
Contributor III

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

Labels (1)
1 Solution
1,296 Views
J2MEJediMaster
Specialist I

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

 

View solution in original post

0 Kudos
6 Replies
1,297 Views
J2MEJediMaster
Specialist I

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

 

0 Kudos
1,296 Views
Karl_H
Contributor III

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

 

0 Kudos
1,296 Views
strawbot
Contributor II

didn't work for me until I found this posting in a different thread:

 

"If you have a dot next to a source file in the column with the green bug on the top, you are generating debug info (See bitmap)."
Now it works fine for me.
1,296 Views
Karl_H
Contributor III

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

 

0 Kudos
1,296 Views
CrasyCat
Specialist III

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

0 Kudos
1,296 Views
Karl_H
Contributor III

Processor is PowerPC 8270. CW version is 5.9.0

 

0 Kudos