Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2021-01-28 16:22:09 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2021-02-01 20:57:05 +0300
commit638fb48911f49482971ee1b4e6328ecde19d1869 (patch)
treed6a7b848d4d3e052ecea2495e770d978a5948a6d /src/node_postmortem_metadata.cc
parentb5f5c46129c197bd693350871bc0f3ff9d288fbb (diff)
src: expose BaseObject::kInternalFieldCount in post-mortem metadata
So that the debugger does not have to hard-code the number of internal fields of BaseObjects. PR-URL: https://github.com/nodejs/node/pull/37111 Refs: https://github.com/nodejs/node/pull/36943 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_postmortem_metadata.cc')
-rw-r--r--src/node_postmortem_metadata.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_postmortem_metadata.cc b/src/node_postmortem_metadata.cc
index ccb347e9517..2dc534f59bf 100644
--- a/src/node_postmortem_metadata.cc
+++ b/src/node_postmortem_metadata.cc
@@ -36,6 +36,7 @@
extern "C" {
int nodedbg_const_ContextEmbedderIndex__kEnvironment__int;
+int nodedbg_const_BaseObject__kInternalFieldCount__int;
uintptr_t nodedbg_offset_ExternalString__data__uintptr_t;
uintptr_t nodedbg_offset_ReqWrap__req_wrap_queue___ListNode_ReqWrapQueue;
@@ -50,6 +51,8 @@ namespace node {
int GenDebugSymbols() {
nodedbg_const_ContextEmbedderIndex__kEnvironment__int =
ContextEmbedderIndex::kEnvironment;
+ nodedbg_const_BaseObject__kInternalFieldCount__int =
+ BaseObject::kInternalFieldCount;
nodedbg_offset_ExternalString__data__uintptr_t = NODE_OFF_EXTSTR_DATA;
nodedbg_offset_ReqWrap__req_wrap_queue___ListNode_ReqWrapQueue =