aboutsummaryrefslogtreecommitdiff
path: root/assert/assert.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-01 09:56:09 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-07 10:27:44 -0300
commit3374ca793660b1321eb56adc5bd10ccbfa3b8622 (patch)
tree66f17ac0f5572dda6926a75fcc5d2a5bc5862cfe /assert/assert.c
parentfee9e40a8da75fad9717668f6dddcc26f3feca2d (diff)
downloadglibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.tar
glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.tar.gz
glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.tar.bz2
glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.zip
assert: Decorate error message buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'assert/assert.c')
-rw-r--r--assert/assert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/assert/assert.c b/assert/assert.c
index b7c7a4a1ba..bf0f4a69f5 100644
--- a/assert/assert.c
+++ b/assert/assert.c
@@ -24,6 +24,7 @@
#include <sysdep.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <setvmaname.h>
extern const char *__progname;
@@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file,
{
buf->size = total;
strcpy (buf->msg, str);
+ __set_vma_name (buf, total, " glibc: assert");
/* We have to free the old buffer since the application might
catch the SIGABRT signal. */