why the source code and assembly code does not correspond

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

why the source code and assembly code does not correspond

跳至解决方案
1,281 次查看
andywell
Contributor I
Please help me: my debugger is: code usb tap; software is used: code warrior; target board is a third party. In debug, the program to download properly, but the source code and assembly code does not correspond, the entrance stopped at the main function, the source code is correct, but the assembly code is invalid (show dc.l 0x00000000), single-step does not work correctly. Thanks
标签 (1)
标记 (1)
0 项奖励
1 解答
554 次查看
tkvenki
Contributor III

Hi andybell,

 

The problem might be with the configuration.

 

Check out/ re-visit them.

We had a similar problem some time back....

and we solved it by modifying them...

 

I mean the CFG and MEM files

 

 

Regards,

Venki

Message Edited by tkvenki on 2009-10-13 08:56 AM

在原帖中查看解决方案

0 项奖励
3 回复数
554 次查看
andywell
Contributor I
Thank you, but can say do a specific point, my operations are carried out in accordance with the instructions, my PPC is 8250, I am not clear about what it should be noted when debugging is set, giving you the trouble
0 项奖励
554 次查看
martinw
Contributor III

When you are in the debugger, can you change the memory contents in the code area?

 

i.e. is the memory mapped to the code area that you are downloading your target code to?

 

It sounds to me as though there is no memory mapped to the code area, so the debugger displays the srouce code as it pulls that from the *.c files, but when you examine the assembler is it all 0 as there is no memory present.

 

Cheers

 

Martin

0 项奖励
555 次查看
tkvenki
Contributor III

Hi andybell,

 

The problem might be with the configuration.

 

Check out/ re-visit them.

We had a similar problem some time back....

and we solved it by modifying them...

 

I mean the CFG and MEM files

 

 

Regards,

Venki

Message Edited by tkvenki on 2009-10-13 08:56 AM
0 项奖励