mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
assert: Decorate error message buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include <sysdep.h>
|
#include <sysdep.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <setvmaname.h>
|
||||||
|
|
||||||
|
|
||||||
extern const char *__progname;
|
extern const char *__progname;
|
||||||
@@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file,
|
|||||||
{
|
{
|
||||||
buf->size = total;
|
buf->size = total;
|
||||||
strcpy (buf->msg, str);
|
strcpy (buf->msg, str);
|
||||||
|
__set_vma_name (buf, total, " glibc: assert");
|
||||||
|
|
||||||
/* We have to free the old buffer since the application might
|
/* We have to free the old buffer since the application might
|
||||||
catch the SIGABRT signal. */
|
catch the SIGABRT signal. */
|
||||||
|
Reference in New Issue
Block a user