Skip to content

Commit

Permalink
Merge remote-tracking branch
Browse files Browse the repository at this point in the history
'origin/GP-4432_ryanmkurtz_programtree--SQUASHED' into Ghidra_11.1
(Closes #6277)
  • Loading branch information
ryanmkurtz committed May 22, 2024
2 parents 587307e + 3c00ea0 commit 982dc01
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import ghidra.app.util.bin.format.mz.*;
import ghidra.app.util.importer.MessageLog;
import ghidra.program.database.mem.FileBytes;
import ghidra.program.database.module.TreeManager;
import ghidra.program.model.address.*;
import ghidra.program.model.data.DataType;
import ghidra.program.model.data.DataUtilities;
Expand Down Expand Up @@ -314,6 +315,10 @@ private void adjustSegmentStarts(Program program, TaskMonitor monitor) throws Ex
}
}
}

// Recreate the Program Tree since it may now be out of sync
program.getListing().removeTree(TreeManager.DEFAULT_TREE_NAME);
program.getListing().createRootModule(TreeManager.DEFAULT_TREE_NAME);
}

private void processRelocations(Program program, SegmentedAddressSpace space, MzExecutable mz,
Expand Down

0 comments on commit 982dc01

Please sign in to comment.