Save/restore registers to host during memory operations. Cache ROM data.
authorKeith Packard <keithp@keithp.com>
Wed, 31 Dec 2008 06:35:53 +0000 (22:35 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 31 Dec 2008 06:38:35 +0000 (22:38 -0800)
commit6c2a65c743a4ffae96ed27dbc38c1bf9242ed1df
treebea5fb122dfcc2edfcff0baca30dd1166a1d24af
parentea366058aa467a8a7caf17e7014758f3741ea7f7
Save/restore registers to host during memory operations. Cache ROM data.

Because the debug port uses instructions for most operations, the debug code
will clobber registers used by the running program. Save and restore these
to avoid corrupting application data.

If the ROM file is known, use that to return data instead of fetching it
from the target to improve performance.

Signed-off-by: Keith Packard <keithp@keithp.com>
lib/Makefile.am
lib/ccdbg-debug.c
lib/ccdbg-debug.h
lib/ccdbg-flash.c
lib/ccdbg-memory.c
lib/ccdbg-rom.c [new file with mode: 0644]
lib/ccdbg-state.c [new file with mode: 0644]
lib/ccdbg.h
s51/s51-command.c
s51/s51-parse.c
s51/s51.h