From 995326b6000773efd454e308d487dec0b9f564b5 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Mon, 1 Oct 2007 08:31:30 +0000 Subject: - flash autoerase cmd added, default is off - flash banks are calculated and erased prior to write (flash write_image only) - corrected array overrun in armv7m.c - corrected breakpoint memory allocation bug - image read now uses fgets, vastly improves reading of large files - improved hex file reading, support for Linear Address Record added git-svn-id: svn://svn.berlios.de/openocd/trunk@208 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/breakpoints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/breakpoints.c') diff --git a/src/target/breakpoints.c b/src/target/breakpoints.c index cc38d029..f52ff306 100644 --- a/src/target/breakpoints.c +++ b/src/target/breakpoints.c @@ -62,7 +62,7 @@ int breakpoint_add(target_t *target, u32 address, u32 length, enum breakpoint_ty (*breakpoint_p)->length = length; (*breakpoint_p)->type = type; (*breakpoint_p)->set = 0; - (*breakpoint_p)->orig_instr = malloc(CEIL(length, 8)); + (*breakpoint_p)->orig_instr = malloc(length); (*breakpoint_p)->next = NULL; if ((retval = target->type->add_breakpoint(target, *breakpoint_p)) != ERROR_OK) -- cgit v1.2.3