| 284 | } |
| 285 | |
| 286 | void 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 | |
| 302 | void DisassemblyView::contextRenameFunction() |
| 303 | { |
nothing calls this directly
no test coverage detected