From fcf3b943d8669249cca0b9d2d8179adcadcc12bd Mon Sep 17 00:00:00 2001 From: oharboe Date: Fri, 18 Apr 2008 07:33:03 +0000 Subject: Enabled auto erase, gdb memory map and gdb flash programming by default. git-svn-id: svn://svn.berlios.de/openocd/trunk@591 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/flash.c | 3 ++- src/server/gdb_server.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/flash/flash.c b/src/flash/flash.c index 46606d2d..12f84418 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -88,7 +88,8 @@ flash_driver_t *flash_drivers[] = flash_bank_t *flash_banks; static command_t *flash_cmd; -static int auto_erase = 0; +/* enabled by default*/ +static int auto_erase = 1; /* wafer thin wrapper for invoking the flash driver */ static int flash_driver_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index bd247b01..6018cd44 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -63,8 +63,10 @@ enum gdb_detach_mode detach_mode = GDB_DETACH_RESUME; /* set if we are sending a memory map to gdb * via qXfer:memory-map:read packet */ -int gdb_use_memory_map = 0; -int gdb_flash_program = 0; +/* enabled by default*/ +int gdb_use_memory_map = 1; +/* enabled by default*/ +int gdb_flash_program = 1; /* if set, data aborts cause an error to be reported in memory read packets * see the code in gdb_read_memory_packet() for further explanations */ -- cgit v1.2.3