Attach GDB to U-Boot on P1021 through CodeWarriorTap

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Attach GDB to U-Boot on P1021 through CodeWarriorTap

ソリューションへジャンプ
1,511件の閲覧回数
zwilcox
Contributor IV

I'm attempting to connect GDB to the GDB Server on the CodeWarrior Tap and debug a Linux Kernel remotely.

I'm able to do it using the CodeWarrior IDE.  See the following:

Attach debugger to elf file in u-boot. 

Debugging Linux Kernel with CodeWarrior for PA 

(Thanks again yipingwang‌).

Now I'm attempting to do the same thing with GDB.  I've edited the p1020_init.gdb file that allowed me to connect to the GDB server and debug with GDB through the CodeWarrior Tap.  The file is attached.

I've created my own version of that file attempting minimize the amount of hardware initialized in the script since U-BOOT has initialized what I need. Also without resetting the system.

When I source my_gdb.init.gdb in GDB without a "mon reset system" or a flushregs on line 63:

mon jtag_chain info

0: mpc8572 in Invalid mode 0xBEAAFADA
1: Draco/m HIP8 in Execute Mode
2: Draco/m HIP8 in Execute Mode

mon get_probe_status
Connected to gdbserver FSL04CBEE:2345
Connected to CCS 10.1.1.90:41475
Connected to probe fpga
Connected to target mpc8572

and with a mon reset system I get and a flughregs on line 63:

mon jtag_chain info

mpc8572 in Debug Mode
1: Draco/m HIP8 in Debug Mode
2: Draco/m HIP8 in Debug Mode

mon get_probe_status
Connected to gdbserver FSL04CBEE:2345
Connected to CCS 10.1.1.90:41475
Connected to probe fpga
Connected to target mpc8572

How can I attach GDB with out resetting the System or deleting the memory?

Thanks :smileyhappy:

Zach

ラベル(1)
0 件の賞賛
返信
1 解決策
1,236件の閲覧回数
zwilcox
Contributor IV

I've been able to resolve this issue.  The GDB script I used is attached

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,237件の閲覧回数
zwilcox
Contributor IV

I've been able to resolve this issue.  The GDB script I used is attached

0 件の賞賛
返信