Hi,

On Wed, Dec 10, 2014 at 04:58:06PM -0500, gds wrote:
> On 12/03/2014 01:31 PM, Paul Fertser wrote:
> > On Wed, Dec 03, 2014 at 01:18:05PM -0500, gds wrote:
> >> Very general question: Is it possible to set a hardware breakpoint on a
> >> running target? I am assuming usage of openocd, gdb, and a jtag adapter
> >> such as olimex. (Of course, setting the breakpoint with the target
> >> halted is the usual way.)
> >
> > Depends on the target, seems it should be possible with cortex_m.
> 
> Yes, cortex-m3 has no problem with this when using greenhills probe on 
> jtag (however, I think you need to halt the target before setting s/w 
> BPs with gh). However, don't know if gdb allows setting/clearing BPs 
> with the target processor running. I have mostly used insight debugger 
> (containing linked in gdb) and it requires a halt to set any BP.

GDB should allow this just fine. See "Non-Stop Mode" (it does "set
breakpoint always-inserted on" automatically; alternatively, set this
option manually, then use "mon resume", then, after the breakpoint is
hit, "mon gdb_sync", and then "stepi" to sync the state).

IIRC Non-Stop mode had some issues so you'll probably have to restort
to the alternative method. It's not really complicated anyway.

HTH
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:[email protected]

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to