Don't redirect stack trace to file

This commit is contained in:
Robert Schmidt
2022-02-21 19:47:14 +01:00
parent b112282e2b
commit 719f82870d
+2 -3
View File
@@ -33,9 +33,8 @@
#define _Assert_Exit_ \
if (getenv("gdbStacks")) { \
char tmp [1000]; \
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d < /dev/null", \
getpid(), getpid()); \
(void) system(tmp); \
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d < /dev/null", getpid()); \
__attribute__((unused)) int dummy=system(tmp); \
} \
fprintf(stderr, "\nExiting execution\n"); \
fflush(stdout); \