]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
target: don't free working areas during 'configure -chain-position'
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 5 Apr 2025 23:20:44 +0000 (01:20 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 19 Apr 2025 09:21:17 +0000 (09:21 +0000)
commita1ecf0a03d9812c285618ed995ea818eba020be3
tree0e9cd34b65ff6e6a42ba47857627937ce856bad7
parentcfed1f78db635b504e4d11da537e614adfd57d3f
target: don't free working areas during 'configure -chain-position'

Since commit ef1cfb23947b ("Duane Ellis: "target as an [tcl]
object" feature.") merged in 2008, the commands:
$target_name configure -chain-position ...
target create ... -chain-position ...
cause the allocated working area to be freed.

There is no reason for this, it is probably caused by an incorrect
copy/paste from the author.

Drop the call to target_free_all_working_areas().

Change-Id: I61a9303afe7fee6953669218330635c0b965b20d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8825
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/target/target.c