mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 01:39:21 +02:00
GP-0 revised PseudoDisassembler.setTargetContextForDisassembly method
for improved reuse
This commit is contained in:
parent
f78ab92fc5
commit
258f8ad44e
6 changed files with 40 additions and 31 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue