public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] assert: Decorate error message buffer
@ 2023-11-07 16:41 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-11-07 16:41 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3374ca793660b1321eb56adc5bd10ccbfa3b8622
commit 3374ca793660b1321eb56adc5bd10ccbfa3b8622
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Nov 1 09:56:09 2023 -0300
assert: Decorate error message buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
Diff:
---
assert/assert.c | 2 ++
1 file changed, 2 insertions(+)
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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-07 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07 16:41 [glibc] assert: Decorate error message buffer Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).