From 06c23d59875d0f7cd4b81ce6192c7fc9c4722231 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 12:23:23 -0500 Subject: include called function in output --- src/stdlib/abort_handler_s.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stdlib/abort_handler_s.c') diff --git a/src/stdlib/abort_handler_s.c b/src/stdlib/abort_handler_s.c index cff0d539..49141c7b 100644 --- a/src/stdlib/abort_handler_s.c +++ b/src/stdlib/abort_handler_s.c @@ -13,6 +13,10 @@ void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t err puts(msg); if (ci) { + if (ci->func) { + printf("In call to %s() ", ci->func); + } + if (ci->signal != 0) { /* TODO: map numbers to names as well */ printf("While handling signal %d: ", ci->signal); -- cgit v1.2.1