MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / FunctionStartingAtAddress

Method FunctionStartingAtAddress

pcsx2/DebugTools/SymbolGuardian.cpp:120–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120FunctionInfo SymbolGuardian::FunctionStartingAtAddress(u32 address) const
121{
122 FunctionInfo info;
123 Read([&](const ccc::SymbolDatabase& database) {
124 ccc::FunctionHandle handle = database.functions.first_handle_from_starting_address(address);
125 const ccc::Function* function = database.functions.symbol_from_handle(handle);
126 if (!function)
127 return;
128
129 info.handle = function->handle();
130 info.name = function->name();
131 info.address = function->address();
132 info.size = function->size();
133 info.is_no_return = function->is_no_return;
134 });
135 return info;
136}
137
138FunctionInfo SymbolGuardian::FunctionOverlappingAddress(u32 address) const
139{

Callers 4

dataMethod · 0.80
dataMethod · 0.80

Calls 7

symbol_from_handleMethod · 0.80
addressMethod · 0.80
ReadFunction · 0.50
handleMethod · 0.45
nameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected