Suppress warning, print stacktrace to stdout
This commit is contained in:
@@ -33,9 +33,9 @@
|
|||||||
#define _Assert_Exit_ \
|
#define _Assert_Exit_ \
|
||||||
if (getenv("gdbStacks")) { \
|
if (getenv("gdbStacks")) { \
|
||||||
char tmp [1000]; \
|
char tmp [1000]; \
|
||||||
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d > /tmp/full_stacks.%d < /dev/null", \
|
sprintf(tmp,"gdb -ex='set confirm off' -ex 'thread apply all bt' -ex q -p %d < /dev/null", \
|
||||||
getpid(), getpid()); \
|
getpid(), getpid()); \
|
||||||
__attribute__((unused)) int dummy=system(tmp); \
|
(void) system(tmp); \
|
||||||
} \
|
} \
|
||||||
fprintf(stderr, "\nExiting execution\n"); \
|
fprintf(stderr, "\nExiting execution\n"); \
|
||||||
fflush(stdout); \
|
fflush(stdout); \
|
||||||
|
|||||||
Reference in New Issue
Block a user