Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-27 Thread Adrian Burns
On Mon, Jan 27, 2014 at 5:52 PM, Paul Fertser wrote: > On Mon, Jan 27, 2014 at 05:27:13PM +, Adrian Burns wrote: > > and then user can request the full set (~60) through the 'reg force' > command > > later on if needed > > > That would be very unusual for GDB users :) > > I was slightly worri

Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-27 Thread Paul Fertser
On Mon, Jan 27, 2014 at 05:27:13PM +, Adrian Burns wrote: > and then user can request the full set (~60) through the 'reg force' command > later on if needed That would be very unusual for GDB users :) > turns out after testing that our halt/resume/step times are ok even with > saving/restori

Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-27 Thread Adrian Burns
On Mon, Jan 27, 2014 at 5:09 PM, Paul Fertser wrote: > On Mon, Jan 27, 2014 at 04:59:18PM +, Adrian Burns wrote: > > 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 > > >Hehe,

Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-27 Thread Paul Fertser
On Mon, Jan 27, 2014 at 04:59:18PM +, Adrian Burns wrote: > 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 Hehe, spotted that during code review today. > but its an easy code ch

Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-27 Thread Adrian Burns
On Fri, Jan 24, 2014 at 12:09 PM, Spencer Oliver wrote: > On 22 January 2014 18:29, Adrian Burns 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

Re: [OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-24 Thread Spencer Oliver
On 22 January 2014 18:29, Adrian Burns 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 hardwa

[OpenOCD-devel] reg command with no arguments - can it be forced to read from hardware

2014-01-22 Thread Adrian Burns
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