From 00431f5ae8dc92c5dd7249999dfeca02e3e9412e Mon Sep 17 00:00:00 2001 From: Yossi Itigin Date: Mon, 12 Feb 2018 22:20:35 +0200 Subject: [PATCH] UCS/CONFIG: Keep freeze-on-error for debug builds --- src/ucs/config/global_opts.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ucs/config/global_opts.c b/src/ucs/config/global_opts.c index cbae01f2e0c..0fb6cd7b894 100644 --- a/src/ucs/config/global_opts.c +++ b/src/ucs/config/global_opts.c @@ -85,7 +85,12 @@ static ucs_config_field_t ucs_global_opts_table[] = { ucs_offsetof(ucs_global_opts_t, mpool_fifo), UCS_CONFIG_TYPE_BOOL}, #endif - {"HANDLE_ERRORS", "bt", + {"HANDLE_ERRORS", +#if ENABLE_DEBUG_DATA + "bt,freeze", +#else + "bt", +#endif "Error handling mode. A combination of: 'bt' (print backtrace),\n" "'freeze' (freeze and wait for a debugger), 'debug' (attach debugger)", ucs_offsetof(ucs_global_opts_t, handle_errors),