mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Merge remote-tracking branch 'origin/GP-1809_Dan_fixWatchesNoTraceNPE'
(#4059)
This commit is contained in:
commit
11be93b401
1 changed files with 5 additions and 1 deletions
|
@ -576,10 +576,14 @@ public class DebuggerWatchesProvider extends ComponentProviderAdapter {
|
||||||
}
|
}
|
||||||
|
|
||||||
private ProgramLocation getDynamicLocation(ProgramLocation someLoc) {
|
private ProgramLocation getDynamicLocation(ProgramLocation someLoc) {
|
||||||
|
TraceProgramView view = current.getView();
|
||||||
|
if (view == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (someLoc.getProgram() instanceof TraceProgramView) {
|
if (someLoc.getProgram() instanceof TraceProgramView) {
|
||||||
return someLoc;
|
return someLoc;
|
||||||
}
|
}
|
||||||
return mappingService.getDynamicLocationFromStatic(current.getView(), someLoc);
|
return mappingService.getDynamicLocationFromStatic(view, someLoc);
|
||||||
}
|
}
|
||||||
|
|
||||||
private AddressSetView getDynamicAddresses(Program program, AddressSetView set) {
|
private AddressSetView getDynamicAddresses(Program program, AddressSetView set) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue