mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GP-4483_Dan_staleEmuADDs--SQUASHED' into patch
This commit is contained in:
commit
9bd7487c91
11 changed files with 265 additions and 39 deletions
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -17,6 +17,7 @@ package ghidra.app.plugin.core.debug.mapping;
|
|||
|
||||
import java.util.Collection;
|
||||
import java.util.Comparator;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import ghidra.app.plugin.core.debug.disassemble.DisassemblyInject;
|
||||
|
@ -27,7 +28,11 @@ import ghidra.framework.plugintool.PluginTool;
|
|||
import ghidra.program.model.address.*;
|
||||
import ghidra.program.model.lang.Endian;
|
||||
import ghidra.trace.model.Trace;
|
||||
import ghidra.trace.model.TraceAddressSnapRange;
|
||||
import ghidra.trace.model.guest.TracePlatform;
|
||||
import ghidra.trace.model.listing.TraceInstruction;
|
||||
import ghidra.trace.model.memory.TraceMemoryOperations;
|
||||
import ghidra.trace.model.memory.TraceMemoryState;
|
||||
import ghidra.trace.model.target.TraceObject;
|
||||
import ghidra.trace.model.thread.TraceThread;
|
||||
import ghidra.util.classfinder.ClassSearcher;
|
||||
|
@ -61,7 +66,13 @@ public abstract class AbstractDebuggerPlatformMapper implements DebuggerPlatform
|
|||
}
|
||||
|
||||
protected boolean isCancelSilently(Address start, long snap) {
|
||||
return trace.getCodeManager().instructions().getAt(snap, start) != null;
|
||||
TraceInstruction exists = trace.getCodeManager().instructions().getAt(snap, start);
|
||||
if (exists == null) {
|
||||
return false;
|
||||
}
|
||||
var states = trace.getMemoryManager().getStates(snap, exists.getRange());
|
||||
return TraceMemoryOperations.isStateEntirely(exists.getRange(), states,
|
||||
TraceMemoryState.KNOWN);
|
||||
}
|
||||
|
||||
protected Collection<DisassemblyInject> getDisassemblyInjections(TracePlatform platform) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue