Skip to content

Instantly share code, notes, and snippets.

@mmarchini
Created December 13, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarchini/905f04115815105f8c86127ec165ad65 to your computer and use it in GitHub Desktop.
Save mmarchini/905f04115815105f8c86127ec165ad65 to your computer and use it in GitHub Desktop.
Node Debug Support
//
// 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