From 48282fbce06fbcf490d857ec9da8c4d603f379c2 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Thu, 5 Aug 2021 00:22:06 +0200 Subject: [PATCH] openocd: fix cleanup order: cti before dap cti access is based on dap. During cleanup, drop cti before dropping dap to guarantee that cti can still access its dap. Change-Id: I40c7f67d4d4a32f53802c0ce7668a5321a05893c Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/6414 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI --- src/openocd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openocd.c b/src/openocd.c index 2c9466624..b4571b464 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -364,8 +364,8 @@ int openocd_main(int argc, char *argv[]) help_del_all_commands(cmd_ctx); /* free all DAP and CTI objects */ - dap_cleanup_all(); arm_cti_cleanup_all(); + dap_cleanup_all(); adapter_quit();