Never tested, and I do not have a board with me right now.
Searching in the user manual, there is the event debug-halted, defined as:
"The target has halted for debug reasons (i.e.: breakpoint)"
It seams you can define a TCL function that is executed when that event hits.
Let us know if it works
Perhaps GDB offers such a scripting capability?
Otherwise search for target events in the manual or in the openocd code.
--
Øyvind Harboe
Can Zylin Consulting help on your project?
US toll free 1-866-980-3434 / International +47 51 87 40 27
http://www.zylin.com/zy1000.html
ARM7 ARM9 ARM11 XSc
Hi,
how can I define an action (a TCL function or something) which can be executed
when a breakpoint is hit?
For example, when a breakpoint is hit and a register has a specific value I
want
to do resume, else I want to do further debugging.
Lucian