title: Eclipse GDB in combination with OpenOCD
body: <p>I am using <code>eclipse CDT</code> to make software for a <code>stm32f0-discovery</code> i use <code>ST-link</code> to program this controller using usb. </p>
  
  <p>A few days ago i got into debugging my chip using <code>OpenOCD6.0.1</code> i followed this tutorial:</p>
  
  <p><a href="http://thehackerworkshop.com/?p=602" rel="nofollow">debugger tutorial</a></p>
  
  <p>after a few hours i got this working being able to step true my program setting breakpoints and all the other ussual debug stuff. Now, here is were the strange thing happens. I started changing my config from -> Monitor reset halt to -> monitor soft_reset_halt .I did this because i eventually want to develop a board with a stm32f0 series chip wich i can program using only three wires (SWD progrogramming). Because i did not get this to work i restored the setting back to monitor reset halt.</p>
  
  <p>Today i wanted to debug my chip and i ran into the following, when i start to debug eclipse tels me that my device is in its reset handler (this seems correct to me because of the monitor reset halt command) the openocd output at this point is:</p>
  
  <pre><code>Open On-Chip Debugger 0.6.1 (2012-10-07-10:34)
  Licensed under GNU GPL v2
  For bug reports, read
      http://openocd.sourceforge.net/doc/doxygen/bugs.html
  adapter speed: 1000 kHz
  srst_only separate srst_nogate srst_open_drain
  Info : clock speed 1000 kHz
  Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
  Info : accepting 'gdb' connection from 3333
  Info : device id = 0x20006440
  Info : flash size = 64kbytes
  Warn : acknowledgment received, but no packet pending
  undefined debug reason 6 - target needs reset
  target state: halted
  target halted due to debug-request, current mode: Thread 
  xPSR: 0xc1000000 pc: 0x0800291c msp: 0x20002000
  Info : Padding image section 0 with 4 bytes
  target state: halted
  target halted due to breakpoint, current mode: Thread 
  xPSR: 0x61000000 pc: 0x2000003a msp: 0x20002000
  Warn : stepi ignored. GDB will now fetch the register state from the target.
  </code></pre>
  
  <p>Now, i want to step over the reset handler to start my program and then i get this warning:</p>
  
  <blockquote>
    <p>Warn : stepi ignored. GDB will now fetch the register state from the
    target.</p>
  </blockquote>
  
  <p>after some googling i can' t find any anwser to what is causing this. does anyone have a clue into solving this issue. </p>