set debug remote 1 這個是用來顯示和ICEman之間的通訊內容, 以協助debug用。
$ nds32le-elf-gdb.exe demo-int-c-ext.adx GNU gdb (2011-07-29) 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=i686-mingw32 --target=nds32le-elf"... source E:\Andestech\AndeSight200MCU\toolchains\nds32le-elf-newlib-v2\bin\.Andesg dbinit (gdb) target remote:1234 Remote debugging using :1234 0x00000d24 in main () at ../src/main.c:83 83 a = calc(a, b, c, d, e, f, g, h); core0(gdb) set trust-readonly-sections off core0(gdb) load Loading section .nds32_vector, size 0x100 lma 0x0 Loading section .nds32_nmih, size 0x4 lma 0x100 Loading section .nds32_wrh, size 0x4 lma 0x104 Loading section .nds32_jmptbl, size 0x40 lma 0x108 Loading section .nds32_isr, size 0x17c lma 0x148 Loading section .text, size 0xca0 lma 0x2c4 Loading section .rodata, size 0x244 lma 0xf64 Loading section .sdata_w, size 0x4 lma 0x11a8 Start address 0x238, load size 4524 Transfer rate: 71 KB/sec, 565 bytes/write. core0(gdb) set debug remote 1 core0(gdb) p/x $pc Sending packet: $g#67...Ack Packet received: 0010000064000000c8000000c8000000c8000000c8000000640000006400000 0b40b000040a80300240e0300ffffffffffffffffffffffffffffffffbc060000fffffffffffffff ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ff4ff7f00c01100008c0d0000d8ff7f00 $1 = 0x238 core0(gdb) x/i $pc 0x238 <_nds32_reset>: Sending packet: $m238,4#6a...Ack Packet received: 4ff20029 beqz $sp,0x28a <_nds32_reset+82> core0(gdb) si Sending packet: $vCont?#49...Ack Packet received: Packet vCont (verbose-resume) is NOT supported Sending packet: $Hc0#db...Ack Packet received: OK Sending packet: $s#73...Ack Packet received: T0520:3c020000;1f:d8ff7f00;2c:090c0700;1e:8c0d0000; Sending packet: $m2be,4#c6...Ack Packet received: 640fffea Sending packet: $g#67...Ack Packet received: 0010000064000000c8000000c8000000c8000000c8000000640000006400000 0b40b000040a80300240e0300ffffffffffffffffffffffffffffffffbc060000fffffffffffffff ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ff4ff7f00c01100008c0d0000d8ff7f00 Sending packet: $m238,4#6a...Ack Packet received: 4ff20029 0x0000023c in _nds32_reset () core0(gdb)
|