On Fri, Jan 24, 2014 at 12:09 PM, Spencer Oliver <s...@spen-soft.co.uk>wrote:

> On 22 January 2014 18:29, Adrian Burns <adrianbur...@gmail.com> wrote:
> > hi,
> >
> > I see the 'reg' command by itself reads from the targets reg_cache buffer
> > without calling into target hardware.
> > Is there any hook to force the 'reg' command to call into the target
> > specific code and read the registers from actual hardware (and of course
> > updating reg_cache with latest hardware values at the same time).
> >
> > otherwise i will have to copy all the registers in from hardware at
> 'halt'
> > (save_context) time?
> >
>
> > according to the src there is a force argument to the reg command -
> > does not seem to be in the user guide however.
> >
> > Spen
>

hadn't spotted that, it works for one register at a time ('reg 0 force')
rather than ('reg force') to get them all in one go which is what i was
after.... but its an easy code change to handle_reg_command() if i really
need it....thanks Spen!
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to