[Patch] Extended flash support

Mike Wrighton mike_wrighton@mentor.com
Thu Nov 22 17:28:00 GMT 2012


Hi,

I have a patch which extends the current flash support for embedded 
targets in the following ways:

1. A new command, "flash-erase" has been added which erases all regions 
of flash memory.
2. A -verify option has been added to the load command which enables 
post-load verification (this applies to both flash and non-flash memory 
regions).

I have a question regarding testcases of these features, as both parts 
are less than straightforward to verify. Part 1 would require creating a 
dummy target with some flash memory regions and adding some support for 
the flash packets (e.g. vFlashErase) in gdbserver. Part 2 would probably 
require creating a target which returns corrupted data after the load, 
forcing a verify error. Are these testcases required, and if so, are 
there any existing examples for testing features that are currently 
unimplemented in gdbserver?

Thanks,
Mike


-------------- next part --------------
A non-text attachment was scrubbed...
Name: flash-support.patch
Type: text/x-patch
Size: 10557 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20121122/840afdbb/attachment.bin>


More information about the Gdb-patches mailing list