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

Method contextRemoveFunction

pcsx2-qt/Debugger/DisassemblyView.cpp:286–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void DisassemblyView::contextRemoveFunction()
287{
288 cpu().GetSymbolGuardian().ReadWrite([&](ccc::SymbolDatabase& database) {
289 ccc::Function* curFunc = database.functions.symbol_overlapping_address(m_selectedAddressStart);
290 if (!curFunc)
291 return;
292
293 ccc::Function* previousFunc = database.functions.symbol_overlapping_address(curFunc->address().value - 4);
294 if (previousFunc)
295 previousFunc->set_size(curFunc->size() + previousFunc->size());
296
297 database.functions.mark_symbol_for_destruction(curFunc->handle(), &database);
298 database.destroy_marked_symbols();
299 });
300}
301
302void DisassemblyView::contextRenameFunction()
303{

Callers

nothing calls this directly

Calls 8

ReadWriteMethod · 0.80
addressMethod · 0.80
set_sizeMethod · 0.80
sizeMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected