breakpoints won't set

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

breakpoints won't set

ソリューションへジャンプ
3,977件の閲覧回数
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,438件の閲覧回数
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,438件の閲覧回数
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,439件の閲覧回数
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,438件の閲覧回数
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,438件の閲覧回数
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 件の賞賛
返信