From 948bc1ed17a3396b74f959ad6e8d677e8d1096ac Mon Sep 17 00:00:00 2001 From: Archkon <180910180+Archkon@users.noreply.github.com> Date: Tue, 4 Aug 2026 01:18:55 +0800 Subject: [PATCH] src: export manually declared postmortem metadata Apply NODE_EXTERN to the manually declared nodedbg_* symbols, matching the macro-generated metadata. This prevents Windows LTCG from discarding symbols required by postmortem debugging tools. Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com> --- src/node_postmortem_metadata.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/node_postmortem_metadata.cc b/src/node_postmortem_metadata.cc index e40d82c0a5d5..da8099adccd1 100644 --- a/src/node_postmortem_metadata.cc +++ b/src/node_postmortem_metadata.cc @@ -36,12 +36,13 @@ V(ListNode_ReqWrap, next_, uintptr_t, ListNode::next_) extern "C" { -int nodedbg_const_ContextEmbedderIndex__kEnvironment__int; -int nodedbg_const_BaseObject__kInternalFieldCount__int; -int nodedbg_const_HandleWrap__kInternalFieldCount__int; -int nodedbg_const_ReqWrap__kInternalFieldCount__int; -uintptr_t nodedbg_offset_ExternalString__data__uintptr_t; -uintptr_t nodedbg_offset_ReqWrap__req_wrap_queue___ListNode_ReqWrapQueue; +NODE_EXTERN int nodedbg_const_ContextEmbedderIndex__kEnvironment__int; +NODE_EXTERN int nodedbg_const_BaseObject__kInternalFieldCount__int; +NODE_EXTERN int nodedbg_const_HandleWrap__kInternalFieldCount__int; +NODE_EXTERN int nodedbg_const_ReqWrap__kInternalFieldCount__int; +NODE_EXTERN uintptr_t nodedbg_offset_ExternalString__data__uintptr_t; +NODE_EXTERN uintptr_t + nodedbg_offset_ReqWrap__req_wrap_queue___ListNode_ReqWrapQueue; #define V(Class, Member, Type, Accessor) \ NODE_EXTERN uintptr_t NODEDBG_OFFSET(Class, Member, Type);