mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-23 22:23:35 +08:00
Merge remote-tracking branch 'origin/GP-3073_fixNPEInListing'
This commit is contained in:
+2
-1
@@ -768,7 +768,8 @@ public class DebuggerListingProvider extends CodeViewerProvider {
|
||||
if (gotoProgram != getProgram()) {
|
||||
doSetProgram(gotoProgram);
|
||||
}
|
||||
if (!gotoProgram.getMemory().contains(location.getAddress())) {
|
||||
if (gotoProgram == null ||
|
||||
!gotoProgram.getMemory().contains(location.getAddress())) {
|
||||
return false;
|
||||
}
|
||||
if (super.goTo(gotoProgram, location)) {
|
||||
|
||||
+14
@@ -803,4 +803,18 @@ public class DebuggerWatchesProviderTest extends AbstractGhidraHeadedDebuggerGUI
|
||||
assertTrue(LongLongDataType.dataType.isEquivalent(rRow0.getDataType()));
|
||||
assertEquals(FormatSettingsDefinition.DECIMAL, format.getChoice(rRow0.getSettings()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTraceClosure() throws Throwable {
|
||||
setRegisterValues(thread);
|
||||
watchesProvider.addWatch("r0");
|
||||
watchesProvider.addWatch("*:8 r0");
|
||||
|
||||
traceManager.openTrace(tb.trace);
|
||||
waitForSwing();
|
||||
|
||||
tb.close();
|
||||
traceManager.activateThread(thread);
|
||||
traceManager.closeTrace(tb.trace);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user