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.
解決済! 解決策の投稿を見る。
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
The command for handling PIC is setpicloadaddr, indicaticating where a PIC executable is loaded.
Adrian
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.
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
Thanks addiyi, it worked for me, after some tweaking with the command for specific address.