mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-20 10:37:27 +08:00
Merge remote-tracking branch 'origin/GP-3591_ghidra1_CreateFunctionBody'
into patch (Closes #5412)
This commit is contained in:
@@ -331,7 +331,7 @@ public class CreateFunctionCmd extends BackgroundCommand {
|
||||
|
||||
Map<Function, AddressSetView> bodyChangeMap = new HashMap<>();
|
||||
// If I ain't got nobody left after extracting overlapping functions
|
||||
if (body.isEmpty()) {
|
||||
if (body.isEmpty() || !body.contains(entry)) {
|
||||
// try subtracting this body from existing functions
|
||||
// need to compute a bodyChangeMap if affecting other functions
|
||||
// in case creation of this function fails
|
||||
|
||||
Reference in New Issue
Block a user