Merge remote-tracking branch 'origin/GP-3591_ghidra1_CreateFunctionBody'

into patch (Closes #5412)
This commit is contained in:
Ryan Kurtz
2023-06-30 12:45:58 -04:00
@@ -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