mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-4147: partial fixes for dbgeng tests
GP-4147: partial fixes for dbgeng tests
This commit is contained in:
parent
1c414dfac5
commit
64694f595c
3 changed files with 15 additions and 5 deletions
|
@ -408,6 +408,9 @@ public class DbgEngTest extends AbstractGhidraHeadlessIntegrationTest {
|
|||
System.out.print(Long.toHexString(offset) + ": ");
|
||||
DebugMemoryBasicInformation info = client.getDataSpaces().queryVirtual(offset);
|
||||
//System.out.println(info);
|
||||
if (info == null) {
|
||||
break;
|
||||
}
|
||||
System.out.println(Long.toHexString(info.baseAddress) + "-" +
|
||||
Long.toHexString(info.regionSize) + ": " + info.state);
|
||||
if (info.baseAddress != offset) {
|
||||
|
@ -563,7 +566,7 @@ public class DbgEngTest extends AbstractGhidraHeadlessIntegrationTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
//@Test - NOT WORKING, addresses in RW memory still not necessarily writeable (why?)
|
||||
public void testWriteMemory() {
|
||||
try (ProcMaker maker = new ProcMaker("notepad")) {
|
||||
maker.start();
|
||||
|
@ -833,7 +836,7 @@ public class DbgEngTest extends AbstractGhidraHeadlessIntegrationTest {
|
|||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
//@Test - This test is way broken; the while(true) loop is unexitable
|
||||
public void testAttachLaunch() throws Exception {
|
||||
final String specimenX = "C:\\windows\\write.exe";
|
||||
final String specimenA = "C:\\windows\\notepad.exe";
|
||||
|
@ -848,7 +851,7 @@ public class DbgEngTest extends AbstractGhidraHeadlessIntegrationTest {
|
|||
|
||||
//System.out.println("Attaching...");
|
||||
//client.attachProcess(client.getLocalServer(), proc.pid, BitmaskSet.of());
|
||||
client.createProcess(client.getLocalServer(), specimenA, "", "",
|
||||
client.createProcess(client.getLocalServer(), specimenA, null, null,
|
||||
BitmaskSet.of(DebugCreateFlags.DEBUG_PROCESS),
|
||||
BitmaskSet.of(DebugEngCreateFlags.DEBUG_ECREATE_PROCESS_DEFAULT),
|
||||
BitmaskSet.of(DebugVerifierFlags.DEBUG_VERIFIER_DEFAULT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue