summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 12:23:23 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 12:23:23 -0500
commit06c23d59875d0f7cd4b81ce6192c7fc9c4722231 (patch)
tree3447a5e162c5406b78db74042ffa88cbcce265c4
parent5771d3ff7a7a79e3a962d84fc36226ca178e9261 (diff)
include called function in output
-rw-r--r--src/stdlib/abort_handler_s.c4
1 files changed, 4 insertions, 0 deletions
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);