can't debug linux multithread aplication

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

can't debug linux multithread aplication

4,471件の閲覧回数
termita
Contributor I
Hi.
 
I'm working with a 860. I'm trying to debug threads, but i can't. I rebuild AppTRK.elf for a 860.
 
AppTRK run ok on target. Then, I open threads example from codewarrior , build it and try to debug, but i can't see threads.
 
What's wrong? I'm reading all documentation contained on codewarrior package and i didn't find any solution.
 
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

1,517件の閲覧回数
marc_paquette
Contributor V

What product and version of CodeWarrior tools are you using? Also, please describe your problem in more detail. Is the debugger able to connect to MetroTRK? Does the debugger display any status or error messages? What capabilities are available besides debugging threads?

Thanks.

Marc.

0 件の賞賛
返信

1,517件の閲覧回数
termita
Contributor I
Hi again,
 
Ok, i found the problem!. It was a problem with filesystem( libraries i suppose). When i boot platform using filesystem created by PCS, thread debug works fine.
 
But, i have next message on Serial console when step over:

Kernel VA for **bleep** c7e181ac  pte @ 0xc7e181ac: no pmd
Bad emulation thread_dbg_mont/49
 **bleep**: 0ffd91b0 instruction: 00000000 opcode: 0 A: 0 B: 0 C: 0 code: 0 rc: 0
 pte @ 0x ffd91b0:  (0xc7e690fc)->(0xc7ebdf64)->0x07e188e9
 RPN: 07e18 PP: 2 SPS: 1 SH: 0 CI: 0 v: 1

But debug works fine. Any ideas?
 
thanks.
 
 
 
 
0 件の賞賛
返信

1,517件の閲覧回数
marc_paquette
Contributor V
The message you see on the serial console describes an illegal instruction intercepted by the debugger. Does your program work without crashing when *not* under debugger control?
 
Marc.
0 件の賞賛
返信

1,517件の閲覧回数
termita
Contributor I
yes, app work fine at debug an normal mode. Error only appear on debug mode.
 
thanks marc.
0 件の賞賛
返信