breakpoints won't set

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

breakpoints won't set

跳至解决方案
3,966 次查看
zilitor
Contributor II

Hello,

 

I'm using CodeWarrior 10.1.1 for the P1010RDB and break points won't set. The two following errors are as follows:

1: Breakpoint when stopping at main under debug settings.

Error stopping at main.

Reason: Target request failed: Failed to set breakpoint.

Continue?

 

2: Info under the Breakpoints tab when setting one manually.

File was not found in symbolics information., Unresolved breakpoint

 

These seem to have occured when tranisitoning to static libraries instead of shared libraries. Any help in getting it to work is appreciated. Thanks.

 

Nick

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,427 次查看
zilitor
Contributor II

Turns out that "Omit all symbol information (-s)" was enabled as a linker option for the executable. Found this out by noticing the ELF file was missing the symbols.

 

Problem solved. :smileyhappy: 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,427 次查看
dordestojicevic
Contributor II

Where is this setting for S12ZVC?

I cannt find it in described position and I have the same problem that I cannot set breakpoints at all positions. At some yes, but not at all, at those where I cannt its reporting the same thing.

0 项奖励
回复
2,428 次查看
zilitor
Contributor II

Turns out that "Omit all symbol information (-s)" was enabled as a linker option for the executable. Found this out by noticing the ELF file was missing the symbols.

 

Problem solved. :smileyhappy: 

 

 

 

0 项奖励
回复
2,427 次查看
maf
Contributor I

Im having the same problem, but I dont understand how you solved it, I've tried everything. Can you explain it please?. Thanks in advance!

0 项奖励
回复
2,427 次查看
zilitor
Contributor II

Sorry for the delay maf...

 

This is how I solved my problem, so I hope it works for you. You must enable all symbol information for the main program and static libraries that you link to (this might be the default setting anyway). This is done by clicking on properties of the project, then going to Build->Settings->Tool Settings->PowerPC Linux Linker->General. Make sure "Omit all symbol information" is unchecked.

 

The symbols are used to debug the code. Without symbols, its just a raw file of instructions and data (look up ELF files for the details, as it is a bit more complicated). The debugger relies on the symbols in the file to step through and debug code.

0 项奖励
回复