On Wed, Jan 24, 2018 at 07:22:42PM -0000, Artamonov Dmitry wrote:
> ">" means packet TO gdbserver
> "<" means packet FROM gdbserver
> I tried to change PC from 08000DF0 to 08000DE2
>
> Packet #0>
> 0000 02 00 00 00 45 02 00 37 20 74 40 00 80 06 00 00 ....E..7 t@.....
> 0010 7f 00 00 01 7f 00 00 01 cb d5 10 92 46 80 20 5f ............F.
> 0020 7b 8a 51 95 50 18 08 03 bf 5f 00 00 24 50 66 3d {.Q.P......$Pf=
> 0030 65 32 30 64 30 30 30 38 23 65 36 e20d0008#e6
IDA asks to change PC to 0x08000de2, ok, fine.
...
> Packet #4>
> 0000 02 00 00 00 45 02 00 38 20 78 40 00 80 06 00 00 ....E..8 x@.....
> 0010 7f 00 00 01 7f 00 00 01 cb d5 10 92 46 80 20 6e ............F. n
> 0020 7b 8a 51 9b 50 18 08 03 0d 67 00 00 24 50 31 39 {.Q.P....g..$P19
> 0030 3d 32 30 30 30 30 30 32 31 23 37 63 =20000021#7c
WTF does IDA want here from OpenOCD?
--
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]
---
** [tickets:#173] "ThreadSetCurrentIp" sometime fails.**
**Status:** new
**Milestone:** 0.9.0
**Created:** Wed Jan 24, 2018 05:01 PM UTC by Artamonov Dmitry
**Last Updated:** Wed Jan 24, 2018 07:22 PM UTC
**Owner:** nobody
OCD 0.10.0. Reproduce stable, with chinese ST-LinkV2 dongle and STMF4Discovery
build-in ST-LinkV2.
Debugee is STM32F1 and STM32F4 respectivelly. Gdb client is IDA Pro.
When i try to change IP debug session drops:
Debug: 7908 326686 gdb_server.c:2812 gdb_input_inner(): received packet:
'Pf=6c0d0008'
Debug: 7909 326690 gdb_server.c:1298 gdb_set_register_packet(): -
Debug: 7910 326694 gdb_server.c:2812 gdb_input_inner(): received packet:
'P19=20000041'
Debug: 7911 326703 gdb_server.c:1298 gdb_set_register_packet(): -
Error: 7912 326706 gdb_server.c:1320 gdb_set_register_packet(): gdb sent a
packet with wrong register size
Debug: 7913 326715 gdb_server.c:1022 gdb_connection_closed(): GDB Close,
Target: stm32f4x.cpu, state: halted, gdb_actual_connections=0
Debug: 7914 326725 target.c:1517 target_call_event_callbacks(): target event 6
(gdb-end)
Debug: 7915 326729 target.c:1517 target_call_event_callbacks(): target event 24
(gdb-detach)
Info : 7916 326737 server.c:503 server_loop(): dropped 'gdb' connection
In IDA:
Debugger: failed to update register value
Command "ThreadSetCurrentIp" failed
To reproduce need debug session some length. I.e. changing IP at first
instructions works well, but some time later it fails.
---
Sent from sourceforge.net because [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel