How to display position independent code(PIC) symbols in Code Warrior IDE 10.0.9?

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

How to display position independent code(PIC) symbols in Code Warrior IDE 10.0.9?

跳至解决方案
2,612 次查看
janmejayjoshi
Contributor I

I am trying to debug position independent source code(PIC) in Code Warrior IDE. But I am not able see symbols for the same in command window, but I'm able to see disassembly.

 

Can anyone help me in this?
Is there any Code Warrior configuration required for this?

Thanks in advance.

标签 (1)
0 项奖励
回复
1 解答
2,323 次查看
addiyi
NXP Employee
NXP Employee

For your case, you need to calculate correctly the PIC. Take a look on Chapter 8, from https://community.nxp.com/docs/DOC-333745 .

Adrian

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,323 次查看
addiyi
NXP Employee
NXP Employee

The command for handling PIC is setpicloadaddr, indicaticating where a PIC executable is loaded.

Adrian

0 项奖励
回复
2,323 次查看
janmejayjoshi
Contributor I

addiyi‌: I have already tried with this command, but it is not much useful to me.
I am able see source code for my static binaries while debugging on CW.
I want to achieve same for the PIC enabled shared libraries. "setpic" command will tell debugger that PIC enabled code is at <addr> address, so that it can be debugged from there.

I want to iterate line by line in my source with debugging for PIC binary, just like we can see static binaries' code.

All my source is already attached with loaded project.

0 项奖励
回复
2,324 次查看
addiyi
NXP Employee
NXP Employee

For your case, you need to calculate correctly the PIC. Take a look on Chapter 8, from https://community.nxp.com/docs/DOC-333745 .

Adrian

0 项奖励
回复
2,323 次查看
janmejayjoshi
Contributor I

Thanks addiyi, it worked for me, after some tweaking with the command for specific address.

0 项奖励
回复