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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,576 次查看
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

标签 (1)
1 解答
1,781 次查看
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 项奖励
回复
6 回复数
1,782 次查看
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 项奖励
回复
1,781 次查看
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 项奖励
回复
1,781 次查看
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,781 次查看
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 项奖励
回复
1,781 次查看
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 项奖励
回复
1,781 次查看
Karl_H
Contributor III

Processor is PowerPC 8270. CW version is 5.9.0

 

0 项奖励
回复