---
** [tickets:#157] OpenOCD AArch64 handles "c" packet as "step"**
**Status:** new
**Milestone:** 0.9.0
**Created:** Fri Jul 14, 2017 01:43 PM UTC by Yao Qi
**Last Updated:** Fri Jul 14, 2017 01:43 PM UTC
**Owner:** nobody
I start OpenOCD mainline for my Lemaker HiKey,
$ ./src/openocd --version
Open On-Chip Debugger 0.10.0+dev-00167-g29cfe9c (2017-07-12-09:00)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
$ ./src/openocd -d -s ../openocd/tcl -f
interface/ftdi/dp_busblaster_kt-link.cfg -c "adapter_khz 500" -f
board/lemaker_hikey.cfg
and I start GDB in the other terminal,
$ ./gdb /tmp/1.exe
(gdb) target remote :3333
Remote debugging using :3333
Python Exception <type 'exceptions.NameError'> Installation error:
gdb.execute_unwinders function is missing:
0x0000000000400240 in main ()
(gdb) load
Loading section .note.gnu.build-id, size 0x24 lma 0x400000
Loading section .init, size 0x34 lma 0x400024
Loading section .text, size 0x784 lma 0x400080
Loading section .fini, size 0x34 lma 0x400804
Loading section .rodata, size 0x10 lma 0x400838
Loading section .eh_frame, size 0x4 lma 0x400848
Loading section .init_array, size 0x8 lma 0x410850
Loading section .fini_array, size 0x8 lma 0x410858
Loading section .jcr, size 0x8 lma 0x410860
Loading section .data, size 0x880 lma 0x410868
Start address 0x4001b0, load size 4284
Transfer rate: 37 KB/sec, 428 bytes/write.
(gdb) disassemble
Dump of assembler code for function _start:
=> 0x00000000004001b0 <+0>: ldr x1, 0x400218 <_cpu_init_hook+28>
0x00000000004001b4 <+4>: and x0, x1, #0xfffffffffffffff0
0x00000000004001b8 <+8>: mov sp, x0
0x00000000004001bc <+12>: mov x29, #0x0 // #0
0x00000000004001c0 <+16>: stp x29, x29, [sp, #-16]!
0x00000000004001c4 <+20>: mov x29, sp
0x00000000004001c8 <+24>: bl 0x4001fc <_cpu_init_hook>
0x00000000004001cc <+28>: ldr x0, 0x400208 <_cpu_init_hook+12>
The, I type command "c", and the program does "single step" ranther than
"continue",
(gdb) c
Continuing.
Halting remaining targets in SMP group
Program received signal SIGTRAP, Trace/breakpoint trap.
_start () at
/home/yao.qi/SourceCode/abe/build-aarch64-elf/snapshots/newlib.git~linaro-local~linaro-2.4-branch/libgloss/aarch64/crt0.S:135
135 in
/home/yao.qi/SourceCode/abe/build-aarch64-elf/snapshots/newlib.git~linaro-local~linaro-2.4-branch/libgloss/aarch64/crt0.S
(gdb) disassemble
Dump of assembler code for function _start:
0x00000000004001b0 <+0>: ldr x1, 0x400218 <_cpu_init_hook+28>
=> 0x00000000004001b4 <+4>: and x0, x1, #0xfffffffffffffff0
0x00000000004001b8 <+8>: mov sp, x0
0x00000000004001bc <+12>: mov x29, #0x0 // #0
0x00000000004001c0 <+16>: stp x29, x29, [sp, #-16]!
(gdb) c
Continuing.
Halting remaining targets in SMP group
d
Program received signal SIGTRAP, Trace/breakpoint trap.
_start () at
/home/yao.qi/SourceCode/abe/build-aarch64-elf/snapshots/newlib.git~linaro-local~linaro-2.4-branch/libgloss/aarch64/crt0.S:136
136 in
/home/yao.qi/SourceCode/abe/build-aarch64-elf/snapshots/newlib.git~linaro-local~linaro-2.4-branch/libgloss/aarch64/crt0.S
(gdb) disassemble
Dump of assembler code for function _start:
0x00000000004001b0 <+0>: ldr x1, 0x400218 <_cpu_init_hook+28>
0x00000000004001b4 <+4>: and x0, x1, #0xfffffffffffffff0
=> 0x00000000004001b8 <+8>: mov sp, x0
0x00000000004001bc <+12>: mov x29, #0x0 // #0
---
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel