MCPcopy Create free account
hub / github.com/Norbyte/ositools / Debugger

Method Debugger

OsiInterface/Debugger.cpp:342–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341
342 Debugger::Debugger(OsirisStaticGlobals & globals, DebugMessageHandler & messageHandler)
343 : globals_(globals), messageHandler_(messageHandler),
344 actionMappings_(globals),
345 debugAdapters_(globals),
346 breakpoints_(globals)
347 {
348 if (messageHandler_.IsConnected()) {
349 breakpoints_.SetGlobalBreakpoints(
350 GlobalBreakpointType::GlobalBreakOnStoryLoaded);
351 }
352
353 messageHandler_.SetDebugger(this);
354
355 using namespace std::placeholders;
356 gNodeVMTWrappers->IsValidPreHook = std::bind(&Debugger::IsValidPreHook, this, _1, _2, _3);
357 gNodeVMTWrappers->IsValidPostHook = std::bind(&Debugger::IsValidPostHook, this, _1, _2, _3, _4);
358 gNodeVMTWrappers->PushDownPreHook = std::bind(&Debugger::PushDownPreHook, this, _1, _2, _3, _4, _5);
359 gNodeVMTWrappers->PushDownPostHook = std::bind(&Debugger::PushDownPostHook, this, _1, _2, _3, _4, _5);
360 gNodeVMTWrappers->InsertPreHook = std::bind(&Debugger::InsertPreHook, this, _1, _2, _3);
361 gNodeVMTWrappers->InsertPostHook = std::bind(&Debugger::InsertPostHook, this, _1, _2, _3);
362 gNodeVMTWrappers->CallQueryPreHook = std::bind(&Debugger::CallQueryPreHook, this, _1, _2);
363 gNodeVMTWrappers->CallQueryPostHook = std::bind(&Debugger::CallQueryPostHook, this, _1, _2, _3);
364 Debug("Debugger::Debugger(): Attached to story");
365
366 DetectGameVersion();
367 }
368
369 Debugger::~Debugger()
370 {

Callers

nothing calls this directly

Calls 4

DebugFunction · 0.85
SetGlobalBreakpointsMethod · 0.80
SetDebuggerMethod · 0.80
IsConnectedMethod · 0.45

Tested by

no test coverage detected