why the source code and assembly code does not correspond

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

why the source code and assembly code does not correspond

Jump to solution
1,237 Views
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
Labels (1)
0 Kudos
1 Solution
510 Views
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

View solution in original post

0 Kudos
3 Replies
510 Views
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 Kudos
510 Views
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 Kudos
511 Views
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 Kudos