openocd/src
Paul Fertser cf77040e1e flash/nor/lpc2000: properly free working area used in get_lpc2000_part_id()
The IAP working area needs to be freed here, just like in all the
other driver functions since an automatic local variable is used to
store a pointer to it.

This was reported by quitte (Jonas Meyer) on IRC as a strange totally
unrelated segfault after doing certain operations (leading to target
reset) from GDB. He has provided me with remote access to the specific
machine and configuration that exposed the issue, and after some
debugging it became apparent that a auto local variable (holding the
gdb connection pointer) gets overwritten somehow. Placing an
appropriate breakpoint just before the event and using a watchpoint
made the cause apparent: reset lead to freeing of all working areas,
and there was one holding a pointer to a variable that was auto local
in get_lpc2000_part_id().

Change-Id: I7e634d890135ca0f3b4b311e09e8385a03982bd6
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2695
Tested-by: jenkins
2015-04-14 12:36:57 +01:00
..
flash flash/nor/lpc2000: properly free working area used in get_lpc2000_part_id() 2015-04-14 12:36:57 +01:00
helper Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
jtag jtag/startup.tcl: fix regression with autoselecting JTAG 2015-04-14 12:35:39 +01:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos ChibiOS: fix crash on auto detection 2015-04-14 12:16:50 +01:00
server Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
svf Openocd: svf: Add ability to ignore svf_check_tdo errors 2014-07-03 18:08:48 +00:00
target Cortex-A: Don't flush the data/unified cache if MMU is off 2015-04-14 11:47:48 +01:00
transport transport: make 'transport select' auto-select the first available transport if not set 2015-03-25 21:32:49 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am Makefile.am: link libusb-1.0 after libusb-0.1 to fix dependencies 2015-02-04 21:56:45 +00:00
openocd.c Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
openocd.h Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00