mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-26 00:46:06 +08:00
GP-0 revised PseudoDisassembler.setTargetContextForDisassembly method
for improved reuse
This commit is contained in:
+2
-1
@@ -328,7 +328,8 @@ public class EHDataTypeUtilities {
|
||||
PseudoDisassembler.getNormalizedDisassemblyAddress(program, functionAddress);
|
||||
Instruction inst = listing.getInstructionAt(normalizedFunctionAddress);
|
||||
if (inst == null) {
|
||||
functionAddress = PseudoDisassembler.setTargeContextForDisassembly(program, functionAddress);
|
||||
functionAddress =
|
||||
PseudoDisassembler.setTargetContextForDisassembly(program, functionAddress);
|
||||
DisassembleCommand cmd = new DisassembleCommand(functionAddress, null, true);
|
||||
if (!cmd.applyTo(program) || cmd.getDisassembledAddressSet().isEmpty()) {
|
||||
Msg.error(EHDataTypeUtilities.class, "Failed to disassemble at " + functionAddress);
|
||||
|
||||
Reference in New Issue
Block a user