MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / FindClassFunctionBreakpoint

Method FindClassFunctionBreakpoint

src/hx/Debugger.cpp:862–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860 }
861
862 int FindClassFunctionBreakpoint(StackFrame *inFrame)
863 {
864 for (int i = 0; i < mBreakpointCount; i++)
865 {
866 Breakpoint &breakpoint = mBreakpoints[i];
867 if (!breakpoint.isFileLine &&
868 #ifdef HXCPP_DEBUG_HASHES
869 breakpoint.hash==inFrame->position->classFuncHash &&
870 #endif
871 !strcmp(breakpoint.fileOrClassName.c_str(), inFrame->position->className) &&
872 !strcmp(breakpoint.functionName.c_str(), inFrame->position->functionName) )
873 return breakpoint.number;
874 }
875 return -1;
876 }
877
878 // Looks up the "interned" version of the name, for faster compares
879 // when evaluating breakpoints

Callers 1

HandleBreakpointsMethod · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected