diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-11-01 09:56:09 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-11-07 10:27:44 -0300 |
commit | 3374ca793660b1321eb56adc5bd10ccbfa3b8622 (patch) | |
tree | 66f17ac0f5572dda6926a75fcc5d2a5bc5862cfe /assert | |
parent | fee9e40a8da75fad9717668f6dddcc26f3feca2d (diff) | |
download | glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.tar.gz glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.tar.xz glibc-3374ca793660b1321eb56adc5bd10ccbfa3b8622.zip |
assert: Decorate error message buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'assert')
-rw-r--r-- | assert/assert.c | 2 |
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. */ |