mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-1543: Replace Range<Long> with Lifespan, ULongSpan, KeySpan,
FieldSpan
This commit is contained in:
parent
d0b55e1d33
commit
776413921f
349 changed files with 6102 additions and 4225 deletions
|
@ -13,15 +13,12 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import com.google.common.collect.Range;
|
||||
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.app.services.DebuggerStaticMappingService;
|
||||
import ghidra.app.services.DebuggerTraceManagerService;
|
||||
import ghidra.program.model.address.AddressSpace;
|
||||
import ghidra.program.util.ProgramLocation;
|
||||
import ghidra.trace.model.DefaultTraceLocation;
|
||||
import ghidra.trace.model.Trace;
|
||||
import ghidra.trace.model.*;
|
||||
|
||||
public class AddMapping extends GhidraScript {
|
||||
@Override
|
||||
|
@ -35,7 +32,7 @@ public class AddMapping extends GhidraScript {
|
|||
AddressSpace statRam = currentProgram.getAddressFactory().getDefaultAddressSpace();
|
||||
|
||||
mappings.addMapping(
|
||||
new DefaultTraceLocation(currentTrace, null, Range.atLeast(0L),
|
||||
new DefaultTraceLocation(currentTrace, null, Lifespan.nowOn(0),
|
||||
dynRam.getAddress(0x00400000)),
|
||||
new ProgramLocation(currentProgram, statRam.getAddress(0x00400000)),
|
||||
0x10000, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue