static pthread_spinlock_t siglock;
#endif
+bool print_backtrace_at_normal_exit_enabled = false;
+
/* Print 'backtrace' */
#ifdef _WIN32
struct frame_layout {
static void handle_error_at_exit(void)
{
- // dump backtrace log no matter what
- INFO("Stack backtrace for tracing...\n");
- INFO("This is not an error.\n");
- dump_backtrace(NULL, 0);
+ if (print_backtrace_at_normal_exit_enabled) {
+ INFO("Stack backtrace for tracing...\n");
+ INFO("This is not an error.\n");
+ dump_backtrace(NULL, 0);
+ }
+}
+
+void enable_print_backtrace_at_normal_exit(void) {
+ print_backtrace_at_normal_exit_enabled = true;
}
#ifdef CONFIG_WIN32
#define __ERROR_HANDLER_H__
void init_error_handler(void);
+void enable_print_backtrace_at_normal_exit(void);
#endif /* __ERROR_HANDLER_H__ */
#include "tizen/src/ui/qt5.h"
#include "tizen/src/util/ui_operations.h"
#include "tizen/src/ecs/ecs.h"
+#include "tizen/src/util/error_handler.h"
# ifdef CONFIG_JAVA_UI
#include "tizen/src/display/maru_display.h"
# endif
}
}
+#ifdef CONFIG_MARU
+ enable_print_backtrace_at_normal_exit();
+#endif
main_loop();
bdrv_close_all();
pause_all_vcpus();