mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Preserve message printed before abort.
The terminal output etc is not visible in a core file. The new libc-internal variable __abort_msg will point to a string with the message which has been printed before the abort in case abort is called from inside libc. BZ #10217
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991,93,95,96,97,98,2001,02 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991,93,1995-1998,2001,02,2009 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -36,6 +36,10 @@
|
||||
# define fflush(s) _IO_flush_all_lockp (0)
|
||||
#endif
|
||||
|
||||
/* Exported variable to locate abort message in core files etc. */
|
||||
char *__abort_msg __attribute__ ((nocommon));
|
||||
libc_hidden_def (__abort_msg)
|
||||
|
||||
/* We must avoid to run in circles. Therefore we remember how far we
|
||||
already got. */
|
||||
static int stage;
|
||||
|
||||
Reference in New Issue
Block a user