can't debug linux multithread aplication

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

can't debug linux multithread aplication

3,554 Views
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.
 
 
Labels (1)
0 Kudos
4 Replies

600 Views
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 Kudos

600 Views
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 Kudos

600 Views
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 Kudos

600 Views
termita
Contributor I
yes, app work fine at debug an normal mode. Error only appear on debug mode.
 
thanks marc.
0 Kudos