Created
December 13, 2017 12:44
-
-
Save mmarchini/905f04115815105f8c86127ec165ad65 to your computer and use it in GitHub Desktop.
Node Debug Support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This file is generated by ./tools/gen-postmortem-metadata.py. Do not edit directly. | |
// | |
// Need to import standard headers before redefining private, otherwise it | |
// won't compile | |
#include <algorithm> | |
#include <array> | |
#include <atomic> | |
#include <bitset> | |
#include <cctype> | |
#include <climits> | |
#include <cmath> | |
#include <cstdarg> | |
#include <cstddef> | |
#include <cstdint> | |
#include <cstdio> | |
#include <cstdlib> | |
#include <cstring> | |
#include <ctime> | |
#include <deque> | |
#include <exception> | |
#include <forward_list> | |
#include <fstream> | |
#include <functional> | |
#include <iomanip> | |
#include <iosfwd> | |
#include <iostream> | |
#include <istream> | |
#include <iterator> | |
#include <limits> | |
#include <list> | |
#include <map> | |
#include <memory> | |
#include <new> | |
#include <ostream> | |
#include <queue> | |
#include <set> | |
#include <sstream> | |
#include <stack> | |
#include <streambuf> | |
#include <string> | |
#include <tuple> | |
#include <type_traits> | |
#include <typeinfo> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <utility> | |
#include <vector> | |
int GenDebugSymbol(); | |
#define private friend int GenDebugSymbol(); private | |
#define nonstandard_offsetof(CLASS, FIELD) reinterpret_cast<uintptr_t> (&(static_cast<CLASS*>(0)->FIELD)) | |
#include "env.h" | |
#include "base_object-inl.h" | |
#include "handle_wrap.h" | |
#include "util.h" | |
#include "req_wrap.h" | |
int nodedbg_environment_context_idx_embedder_data; | |
size_t nodedbg_class__BaseObject__persistent_handle; | |
size_t nodedbg_class__Environment__handleWrapQueue; | |
size_t nodedbg_class__HandleWrap__list; | |
size_t nodedbg_class__HandleWrapQueue__headOffset; | |
size_t nodedbg_class__HandleWrapQueue__nextOffset; | |
size_t nodedbg_class__Environment__reqWrapQueue; | |
size_t nodedbg_class__ReqWrap__node; | |
size_t nodedbg_class__ReqWrapQueue__headOffset; | |
size_t nodedbg_class__ReqWrapQueue__nextOffset; | |
namespace node { | |
int GenDebugSymbol() { | |
nodedbg_environment_context_idx_embedder_data = Environment::kContextEmbedderDataIndex; | |
nodedbg_class__BaseObject__persistent_handle = nonstandard_offsetof(BaseObject, persistent_handle_); | |
nodedbg_class__Environment__handleWrapQueue = nonstandard_offsetof(Environment, handle_wrap_queue_); | |
nodedbg_class__HandleWrap__list = nonstandard_offsetof(HandleWrap, handle_wrap_queue_); | |
nodedbg_class__HandleWrapQueue__headOffset = offsetof(Environment::HandleWrapQueue, head_); | |
nodedbg_class__HandleWrapQueue__nextOffset = offsetof(ListNode<HandleWrap>, next_); | |
nodedbg_class__Environment__reqWrapQueue = nonstandard_offsetof(Environment, req_wrap_queue_); | |
nodedbg_class__ReqWrap__node = nonstandard_offsetof(ReqWrap<uv_req_t>, req_wrap_queue_); | |
nodedbg_class__ReqWrapQueue__headOffset = offsetof(Environment::ReqWrapQueue, head_); | |
nodedbg_class__ReqWrapQueue__nextOffset = offsetof(ListNode<ReqWrap<uv_req_t>>, next_); | |
return 1; | |
} | |
int debug_symbols_generated = GenDebugSymbol(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment