summaryrefslogtreecommitdiff
path: root/rts/LinkerInternals.h
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2022-03-16 21:54:24 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-06 16:25:25 -0400
commitfa404335dd9ca45a75f9184f671eb5f9664ef1fa (patch)
tree644011074ca490a8cb8e18a313d504ba9f600c71 /rts/LinkerInternals.h
parent3247b7dbc6eab81c9fc02fbc385b69dc129fcdc6 (diff)
downloadhaskell-fa404335dd9ca45a75f9184f671eb5f9664ef1fa.tar.gz
rts/linker: More descriptive debug output
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r--rts/LinkerInternals.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index 917984a5c6..8a71179932 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -360,6 +360,12 @@ struct _ObjectCode {
(OC)->fileName \
)
+#define ocDebugBelch(oc, s, ...) \
+ debugBelch("%s(%" PATH_FMT ": " s, \
+ __func__, \
+ OC_INFORMATIVE_FILENAME(oc), \
+ ##__VA_ARGS__)
+
#if defined(THREADED_RTS)
extern Mutex linker_mutex;