Thu Oct 30 19:23:45 EDT 2014

Stepping on the f103

So I'm able to step through the code.

(gdb) p/x *0x8000000
$4 = 0x20005000
(gdb) p/x *0x8000004
$5 = 0x8001299

But setting $pc doesn't work.

This does seem to reset properly:

(gdb) mon reset halt
JTAG tap: stm32f103c8t6.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x3)
JTAG tap: stm32f103c8t6.bs tap/device found: 0x16410041 (mfg: 0x020, part: 0x6410, ver: 0x1)
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08001298 msp: 0x20005000

Registers are out of sync.  How to reload?
stepi seems to solve that..

not much consistent behaviour.
still buggy as hell this stuff...
let's upgrade gdb as well..

it also complains about no hw breakpoint resources available.  restarting openocd helped.

anyways, seems to be "mostly ok".  gud is working as well with gdb-7.8.1