Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Øyvind Harboe
On Thu, Jan 14, 2010 at 4:05 PM, Spencer Oliver wrote: > Øyvind Harboe wrote: >>> >>> I am a bit bemused by this. >>> GDB will have a good copy of the registers when it connects to openocd >>> anyway. >> >> Not necessarily true: >> >> target remote >> load >> monitor reg >> => GDB is out of s

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Spencer Oliver
Øyvind Harboe wrote: >> I am a bit bemused by this. >> GDB will have a good copy of the registers when it connects to openocd >> anyway. > > Not necessarily true: > > target remote > load > monitor reg > => GDB is out of sync > stepi > => gdb is in sync here. > > but surely the regs shoul

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Øyvind Harboe
> I am a bit bemused by this. > GDB will have a good copy of the registers when it connects to openocd > anyway. Not necessarily true: target remote load monitor reg => GDB is out of sync stepi => gdb is in sync here. -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Spencer Oliver
>> >> while checking the docs i found that gdb_sync has no mention. >> If i knew what it did i would add something - any takers? > > gdb_sync can be used to tell GDB not to execute a step/continue > upon the next step/continue, but return immediately. > > This will refresh the GDB copy of the tar

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Øyvind Harboe
On Thu, Jan 14, 2010 at 11:36 AM, Spencer Oliver wrote: > David Brownell wrote: >> On Wednesday 13 January 2010, Spencer Oliver wrote: >>> Any reason why this cannot be used before init is called ? >> >> No reason I can think of .. go for it! >> >> >>> Cheers >>> Spen >>> >>>   - enable gdb_breakp

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-14 Thread Spencer Oliver
David Brownell wrote: > On Wednesday 13 January 2010, Spencer Oliver wrote: >> Any reason why this cannot be used before init is called ? > > No reason I can think of .. go for it! > > >> Cheers >> Spen >> >> - enable gdb_breakpoint_override to be used within config script. >> >> Signed-off-by

Re: [Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-13 Thread David Brownell
On Wednesday 13 January 2010, Spencer Oliver wrote: > Any reason why this cannot be used before init is called ? No reason I can think of .. go for it! > Cheers > Spen > > - enable gdb_breakpoint_override to be used within config script. > > Signed-off-by: Spencer Oliver > --- > src/serve

[Openocd-development] [PATCH] GDB: change gdb_breakpoint_override to COMMAND_ANY

2010-01-13 Thread Spencer Oliver
Any reason why this cannot be used before init is called ? Cheers Spen - enable gdb_breakpoint_override to be used within config script. Signed-off-by: Spencer Oliver --- src/server/gdb_server.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) >From 2fb666c559b5930b1be1e6a89b530e1