On Thu, Jan 14, 2010 at 11:36 AM, Spencer Oliver <s...@spen-soft.co.uk> 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_breakpoint_override to be used within config script. >>> >>> Signed-off-by: Spencer Oliver <ntfr...@users.sourceforge.net> >>> --- >>> src/server/gdb_server.c | 2 +- >>> 1 files changed, 1 insertions(+), 1 deletions(-) >>> > > pushed. > > 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 target registers. Upon target connection, gdb_sync is executed implicitly and thus the first stepi/continue received will in fact not step, but just refresh GDB's copy of the target registers. The effect is that: target remote xxx load stepi => will place pc at the *first* instruction in the load application, rather than at the second. -- Øyvind Harboe US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development