mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-09-20 09:31:47 +00:00
Merge branch 'master' into isa_ext
This commit is contained in:
commit
2497f18be1
|
@ -32,7 +32,7 @@ authors' names directly in the source code, so it is discouraged.
|
|||
Download non-Maven Central dependencies. This creates a `dependencies` directory in the repository
|
||||
root.
|
||||
```
|
||||
gradle -I gradle/support/fetchDependencies.gradle init
|
||||
gradle -I gradle/support/fetchDependencies.gradle
|
||||
```
|
||||
|
||||
Download Maven Central dependencies and setup the repository for development. By default, these
|
||||
|
@ -97,7 +97,7 @@ Sometimes you may want to move the Ghidra repository to an offline network and d
|
|||
These are the recommended steps to ensure that you not only move the source repository, but all
|
||||
downloaded dependencies as well:
|
||||
|
||||
1. `gradle -I gradle/support/fetchDependencies.gradle init`
|
||||
1. `gradle -I gradle/support/fetchDependencies.gradle`
|
||||
2. `gradle -g dependencies/gradle prepdev`
|
||||
3. Move ghidra directory to different system
|
||||
4. `gradle -g dependencies/gradle buildGhidra` (on offline system)
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
##MODULE IP: MIT
|
||||
Module.manifest||GHIDRA||||END|
|
||||
data/debugger-launchers/kernel-dbgeng.bat||GHIDRA||||END|
|
||||
data/debugger-launchers/local-dbgeng-attach.bat||GHIDRA||||END|
|
||||
data/debugger-launchers/local-dbgeng-ext.bat||GHIDRA||||END|
|
||||
data/debugger-launchers/local-dbgeng.bat||GHIDRA||||END|
|
||||
data/debugger-launchers/local-ttd.bat||GHIDRA||||END|
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
::@title dbgeng-attach
|
||||
::@desc <html><body width="300px">
|
||||
::@desc <h3>Attach with <tt>dbgeng</tt> (in a Python interpreter)</h3>
|
||||
::@desc <p>
|
||||
::@desc This will attach to a running target on the local machine using <tt>dbgeng.dll</tt>.
|
||||
::@desc For setup instructions, press <b>F1</b>.
|
||||
::@desc </p>
|
||||
::@desc </body></html>
|
||||
::@menu-group local
|
||||
::@icon icon.debugger
|
||||
::@help TraceRmiLauncherServicePlugin#dbgeng_attach
|
||||
::@env OPT_PYTHON_EXE:file="python" "Python command" "The path to the Python 3 interpreter. Omit the full path to resolve using the system PATH."
|
||||
::@env OPT_TARGET_PID:str="" "Process id" "The target process id"
|
||||
::@env OPT_ATTACH_FLAGS:str="0" "Attach flags" "Attach flags"
|
||||
::@env OPT_USE_DBGMODEL:bool=true "Use dbgmodel" "Load and use dbgmodel.dll if it is available."
|
||||
::@env WINDBG_DIR:dir="" "Path to dbgeng.dll directory" "Path containing dbgeng and associated DLLS (if not Windows Kits)."
|
||||
|
||||
@echo off
|
||||
|
||||
"%OPT_PYTHON_EXE%" -i ..\support\local-dbgeng-attach.py
|
|
@ -0,0 +1,69 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
home = os.getenv('GHIDRA_HOME')
|
||||
|
||||
if os.path.isdir(f'{home}\\ghidra\\.git'):
|
||||
sys.path.append(
|
||||
f'{home}\\ghidra\\Ghidra\\Debug\\Debugger-agent-dbgeng\\build\\pypkg\\src')
|
||||
sys.path.append(
|
||||
f'{home}\\ghidra\\Ghidra\\Debug\\Debugger-rmi-trace\\build\\pypkg\\src')
|
||||
elif os.path.isdir(f'{home}\\.git'):
|
||||
sys.path.append(
|
||||
f'{home}\\Ghidra\\Debug\\Debugger-agent-dbgeng\\build\\pypkg\\src')
|
||||
sys.path.append(
|
||||
f'{home}\\Ghidra\\Debug\\Debugger-rmi-trace\\build\\pypkg\\src')
|
||||
else:
|
||||
sys.path.append(
|
||||
f'{home}\\Ghidra\\Debug\\Debugger-agent-dbgeng\\pypkg\\src')
|
||||
sys.path.append(f'{home}\\Ghidra\\Debug\\Debugger-rmi-trace\\pypkg\\src')
|
||||
|
||||
|
||||
def main():
|
||||
# Delay these imports until sys.path is patched
|
||||
from ghidradbg import commands as cmd
|
||||
from pybag.dbgeng import core as DbgEng
|
||||
from ghidradbg.hooks import on_state_changed
|
||||
from ghidradbg.util import dbg
|
||||
|
||||
# So that the user can re-enter by typing repl()
|
||||
global repl
|
||||
repl = cmd.repl
|
||||
|
||||
cmd.ghidra_trace_connect(os.getenv('GHIDRA_TRACE_RMI_ADDR'))
|
||||
flags = os.getenv('OPT_ATTACH_FLAGS')
|
||||
cmd.ghidra_trace_attach(
|
||||
os.getenv('OPT_TARGET_PID'), flags, start_trace=False)
|
||||
|
||||
# TODO: HACK
|
||||
try:
|
||||
dbg.wait()
|
||||
except KeyboardInterrupt as ki:
|
||||
dbg.interrupt()
|
||||
|
||||
cmd.ghidra_trace_start(os.getenv('OPT_TARGET_IMG'))
|
||||
cmd.ghidra_trace_sync_enable()
|
||||
|
||||
on_state_changed(DbgEng.DEBUG_CES_EXECUTION_STATUS, DbgEng.DEBUG_STATUS_BREAK)
|
||||
cmd.repl()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
|
@ -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.
|
||||
|
@ -220,7 +220,7 @@ public interface DbgEngGadpServer extends AutoCloseable {
|
|||
* {@link #terminate()}, or 3) When an error occurs causing the server to terminate
|
||||
* unexpectedly. Otherwise, it returns true.
|
||||
*
|
||||
* @returns true if the server is currently running.
|
||||
* @return true if the server is currently running.
|
||||
*/
|
||||
public boolean isRunning();
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||
|
||||
[project]
|
||||
name = "ghidradbg"
|
||||
version = "11.1.2"
|
||||
version = "11.2"
|
||||
authors = [
|
||||
{ name="Ghidra Development Team" },
|
||||
]
|
||||
|
@ -17,8 +17,8 @@ classifiers = [
|
|||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = [
|
||||
"ghidratrace==11.1.2",
|
||||
"pybag>=2.2.10"
|
||||
"ghidratrace==11.2",
|
||||
"pybag>=2.2.12"
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
import code
|
||||
from contextlib import contextmanager
|
||||
|
@ -32,7 +32,6 @@ from pybag.dbgeng.win32.kernel32 import STILL_ACTIVE
|
|||
|
||||
from . import util, arch, methods, hooks
|
||||
from .dbgmodel.imodelobject import ModelObjectKind
|
||||
from .dbgeng.idebugclient5 import *
|
||||
|
||||
PAGE_SIZE = 4096
|
||||
|
||||
|
@ -297,6 +296,23 @@ def ghidra_trace_create_ext(command=None, initialDirectory='.', envVariables="\0
|
|||
ghidra_trace_start(command)
|
||||
|
||||
|
||||
@util.dbg.eng_thread
|
||||
def ghidra_trace_attach(pid=None, attach_flags='0', initial_break=True, timeout=DbgEng.WAIT_INFINITE, start_trace=True):
|
||||
"""
|
||||
Create a session by attaching.
|
||||
"""
|
||||
|
||||
dbg = util.dbg._base
|
||||
if initial_break:
|
||||
dbg._control.AddEngineOptions(DbgEng.DEBUG_ENGINITIAL_BREAK)
|
||||
if attach_flags == None:
|
||||
attach_flags = '0'
|
||||
if pid != None:
|
||||
dbg._client.AttachProcess(int(pid,0), int(attach_flags,0))
|
||||
if start_trace:
|
||||
ghidra_trace_start("pid_"+pid)
|
||||
|
||||
|
||||
@util.dbg.eng_thread
|
||||
def ghidra_trace_attach_kernel(command=None, initial_break=True, timeout=DbgEng.WAIT_INFINITE, start_trace=True):
|
||||
"""
|
||||
|
@ -1397,14 +1413,14 @@ def update_by_container(np, keyval, obj):
|
|||
if np.endswith("Frames"):
|
||||
mo = util.get_object(obj.path)
|
||||
map = util.get_attributes(mo)
|
||||
attr = map["Attributes"]
|
||||
if attr is None:
|
||||
return
|
||||
map = util.get_attributes(attr)
|
||||
pc = util.get_value(map["InstructionOffset"])
|
||||
(pc_base, pc_addr) = map_address(pc)
|
||||
obj.set_value('Instruction Offset', pc_addr)
|
||||
key = '#{:x} 0x{:x}'.format(index, pc)
|
||||
if 'Attributes' in map:
|
||||
attr = map["Attributes"]
|
||||
if attr is not None:
|
||||
map = util.get_attributes(attr)
|
||||
pc = util.get_value(map["InstructionOffset"])
|
||||
(pc_base, pc_addr) = map_address(pc)
|
||||
obj.set_value('Instruction Offset', pc_addr)
|
||||
key = '#{:x} 0x{:x}'.format(index, pc)
|
||||
if np.endswith("Modules"):
|
||||
create_generic(obj.path)
|
||||
mo = util.get_object(obj.path)
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
from _ctypes_test import func
|
||||
import functools
|
||||
import sys
|
||||
import threading
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -16,7 +16,7 @@
|
|||
package agent.dbgeng.dbgeng;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
import static org.junit.Assume.*;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.ByteBuffer;
|
||||
|
@ -45,6 +45,7 @@ import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
|
|||
import ghidra.util.Msg;
|
||||
import ghidra.util.NumericUtilities;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class DbgEngTest extends AbstractGhidraHeadlessIntegrationTest {
|
||||
|
||||
private interface DummyLibIf extends StdCallLibrary {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,8 +17,11 @@ package agent.dbgeng.manager.impl;
|
|||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.manager.DbgManager;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class SpawnedDbgManagerTest extends AbstractDbgManagerTest {
|
||||
@Override
|
||||
protected CompletableFuture<Void> startManager(DbgManager manager) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,10 +15,13 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengBreakpointsTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengBreakpointsTest extends AbstractModelForDbgengBreakpointsTest {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFactoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengFactoryTest extends AbstractModelForDbgengFactoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,13 +15,17 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFrameActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengFrameActivationTest
|
||||
extends AbstractModelForDbgengFrameActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getStackPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[].Threads[].Stack[]"));
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,6 +20,7 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengInterpreterTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengInterpreterTest extends AbstractModelForDbgengInterpreterTest {
|
||||
|
||||
// NB: testLaunchViaInterpreterShowInProcessContainer fails
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,13 +17,17 @@ package agent.dbgeng.model.gadp;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengProcessActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengProcessActivationTest
|
||||
extends AbstractModelForDbgengProcessActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getProcessPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[]"));
|
||||
}
|
||||
|
@ -38,6 +42,7 @@ public class GadpModelForDbgengProcessActivationTest
|
|||
return PathUtils.parse("Sessions[0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return line.split("\\s+")[1];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootAttacherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengRootAttacherTest extends AbstractModelForDbgengRootAttacherTest {
|
||||
|
||||
// NB: testListAttachable fails with OTE - [] not invalidated
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengRootLauncherTest extends AbstractModelForDbgengRootLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioCloneExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengScenarioCloneExitTest
|
||||
extends AbstractModelForDbgengScenarioCloneExitTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,9 +20,11 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioForkExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengScenarioForkExitTest
|
||||
extends AbstractModelForDbgengScenarioForkExitTest {
|
||||
|
||||
@Override
|
||||
@Ignore("Specimen is currently defunct")
|
||||
@Test
|
||||
public void testScenario() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioMemoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengScenarioMemoryTest extends AbstractModelForDbgengScenarioMemoryTest {
|
||||
|
||||
// NB: Fails on validateCompletionThread
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioStackTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengScenarioStackTest extends AbstractModelForDbgengScenarioStackTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengScenarioX64RegistersTest
|
||||
extends AbstractModelForDbgengScenarioX64RegistersTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -19,8 +19,9 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSessionActivationTest;
|
||||
|
||||
@Ignore("Don't know how to make multiple sessions")
|
||||
public class GadpModelForDbgengSessionActivationTest extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Ignore("Don't know how to make multiple sessions, deprecated")
|
||||
public class GadpModelForDbgengSessionActivationTest
|
||||
extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
return new GadpDbgengModelHost();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSteppableTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengSteppableTest extends AbstractModelForDbgengSteppableTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,13 +17,17 @@ package agent.dbgeng.model.gadp;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengThreadActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengThreadActivationTest
|
||||
extends AbstractModelForDbgengThreadActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getThreadPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[].Threads[]"));
|
||||
}
|
||||
|
@ -38,6 +42,7 @@ public class GadpModelForDbgengThreadActivationTest
|
|||
return PathUtils.parse("Sessions[0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return line.split("\\s+")[1];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForDbgengX64RegistersTest extends AbstractModelForDbgengX64RegistersTest {
|
||||
|
||||
// NB: Fails testWriteRegisters
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,14 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.DbgEngInJvmDebuggerModelFactory;
|
||||
import agent.dbgeng.dbgeng.DbgEngTest;
|
||||
import agent.dbgeng.model.AbstractDbgengModelHost;
|
||||
import ghidra.dbg.DebuggerModelFactory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmDbgengModelHost extends AbstractDbgengModelHost {
|
||||
@Override
|
||||
public DebuggerModelFactory getModelFactory() {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,10 +15,15 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengBreakpointsTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengBreakpointsTest extends AbstractModelForDbgengBreakpointsTest {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFactoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengFactoryTest extends AbstractModelForDbgengFactoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,13 +15,17 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFrameActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengFrameActivationTest
|
||||
extends AbstractModelForDbgengFrameActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getStackPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[].Threads[].Stack[]"));
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -21,6 +21,7 @@ import org.junit.Test;
|
|||
import agent.dbgeng.model.AbstractModelForDbgengInterpreterTest;
|
||||
import ghidra.dbg.error.DebuggerModelTerminatingException;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengInterpreterTest extends AbstractModelForDbgengInterpreterTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,13 +17,17 @@ package agent.dbgeng.model.invm;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengProcessActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengProcessActivationTest
|
||||
extends AbstractModelForDbgengProcessActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getProcessPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[]"));
|
||||
}
|
||||
|
@ -38,6 +42,7 @@ public class InVmModelForDbgengProcessActivationTest
|
|||
return PathUtils.parse("Sessions[0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return line.split("\\s+")[1];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,6 +20,7 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootAttacherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengRootAttacherTest extends AbstractModelForDbgengRootAttacherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengRootLauncherTest extends AbstractModelForDbgengRootLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioCloneExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengScenarioCloneExitTest
|
||||
extends AbstractModelForDbgengScenarioCloneExitTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,9 +20,11 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioForkExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengScenarioForkExitTest
|
||||
extends AbstractModelForDbgengScenarioForkExitTest {
|
||||
|
||||
@Override
|
||||
@Ignore("Specimen is currently defunct")
|
||||
@Test
|
||||
public void testScenario() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioMemoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengScenarioMemoryTest extends AbstractModelForDbgengScenarioMemoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioStackTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengScenarioStackTest extends AbstractModelForDbgengScenarioStackTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengScenarioX64RegistersTest
|
||||
extends AbstractModelForDbgengScenarioX64RegistersTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -19,8 +19,9 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSessionActivationTest;
|
||||
|
||||
@Ignore("Don't know how to make multiple sessions")
|
||||
public class InVmModelForDbgengSessionActivationTest extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Ignore("Don't know how to make multiple sessions, deprecated")
|
||||
public class InVmModelForDbgengSessionActivationTest
|
||||
extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
return new InVmDbgengModelHost();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSteppableTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengSteppableTest extends AbstractModelForDbgengSteppableTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,13 +17,17 @@ package agent.dbgeng.model.invm;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengThreadActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengThreadActivationTest
|
||||
extends AbstractModelForDbgengThreadActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getThreadPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0].Processes[].Threads[]"));
|
||||
}
|
||||
|
@ -38,6 +42,7 @@ public class InVmModelForDbgengThreadActivationTest
|
|||
return PathUtils.parse("Sessions[0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return line.split("\\s+")[1];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgeng.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgengX64RegistersTest extends AbstractModelForDbgengX64RegistersTest {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -21,8 +21,7 @@ import static org.junit.Assert.assertNotNull;
|
|||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.*;
|
||||
|
||||
import agent.dbgeng.dbgeng.*;
|
||||
import agent.dbgeng.dbgeng.DebugBreakpoint.BreakFlags;
|
||||
|
@ -37,6 +36,7 @@ import ghidra.dbg.util.PathUtils;
|
|||
import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
|
||||
import ghidra.util.Msg;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class DbgModelSetContextMWETest extends AbstractGhidraHeadlessIntegrationTest {
|
||||
|
||||
@Before
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,8 +22,7 @@ import java.nio.ByteBuffer;
|
|||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.*;
|
||||
|
||||
import com.sun.jna.Pointer;
|
||||
import com.sun.jna.WString;
|
||||
|
@ -53,6 +52,7 @@ import agent.dbgmodel.jna.dbgmodel.UnknownWithUtils;
|
|||
import ghidra.test.AbstractGhidraHeadlessIntegrationTest;
|
||||
import ghidra.util.NumericUtilities;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class DbgModelTest extends AbstractGhidraHeadlessIntegrationTest {
|
||||
protected static HostDataModelAccess cachedAccess = null;
|
||||
protected static DebugClient cachedClient = null;
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,10 +15,13 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengBreakpointsTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelBreakpointsTest extends AbstractModelForDbgengBreakpointsTest {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,9 +15,12 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFactoryTest;
|
||||
import ghidra.dbg.testutil.TestDebuggerModelProvider.ModelHost.WithoutThreadValidation;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelFactoryTest extends AbstractModelForDbgengFactoryTest {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,13 +15,17 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengFrameActivationTest;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelFrameActivationTest
|
||||
extends AbstractModelForDbgengFrameActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getStackPattern() {
|
||||
return new PathPattern(
|
||||
PathUtils.parse("Sessions[0x0].Processes[].Threads[].Stack.Frames[]"));
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -32,6 +32,7 @@ import ghidra.dbg.test.AbstractDebuggerModelTest;
|
|||
import ghidra.dbg.test.ProvidesTargetViaLaunchSpecimen;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelInterpreterTest extends AbstractModelForDbgengInterpreterTest
|
||||
implements ProvidesTargetViaLaunchSpecimen {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,15 +17,19 @@ package agent.dbgmodel.model.invm;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengProcessActivationTest;
|
||||
import ghidra.dbg.target.TargetInterpreter;
|
||||
import ghidra.dbg.target.TargetObject;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelProcessActivationTest
|
||||
extends AbstractModelForDbgengProcessActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getProcessPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0x0].Processes[]"));
|
||||
}
|
||||
|
@ -40,6 +44,7 @@ public class InVmModelForDbgmodelProcessActivationTest
|
|||
return PathUtils.parse("Sessions[0x0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return "0x" + line.split("\\s+")[3];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,6 +20,7 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootAttacherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelRootAttacherTest extends AbstractModelForDbgengRootAttacherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengRootLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelRootLauncherTest extends AbstractModelForDbgengRootLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioCloneExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelScenarioCloneExitTest
|
||||
extends AbstractModelForDbgengScenarioCloneExitTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,9 +20,11 @@ import org.junit.Test;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioForkExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelScenarioForkExitTest
|
||||
extends AbstractModelForDbgengScenarioForkExitTest {
|
||||
|
||||
@Override
|
||||
@Ignore("Specimen is currently defunct")
|
||||
@Test
|
||||
public void testScenario() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,8 @@ package agent.dbgmodel.model.invm;
|
|||
|
||||
import java.util.*;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioMemoryTest;
|
||||
import ghidra.dbg.target.TargetModule;
|
||||
import ghidra.dbg.target.TargetProcess;
|
||||
|
@ -24,6 +26,7 @@ import ghidra.dbg.util.PathUtils;
|
|||
import ghidra.program.model.address.Address;
|
||||
import ghidra.program.model.address.AddressRange;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelScenarioMemoryTest
|
||||
extends AbstractModelForDbgengScenarioMemoryTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,10 +15,13 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioStackTest;
|
||||
import ghidra.dbg.target.TargetProcess;
|
||||
import ghidra.program.model.address.Address;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelScenarioStackTest extends AbstractModelForDbgengScenarioStackTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengScenarioX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelScenarioX64RegistersTest
|
||||
extends AbstractModelForDbgengScenarioX64RegistersTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -19,8 +19,9 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSessionActivationTest;
|
||||
|
||||
@Ignore("Don't know how to make multiple sessions")
|
||||
public class InVmModelForDbgmodelSessionActivationTest extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Ignore("Don't know how to make multiple sessions, deprecated")
|
||||
public class InVmModelForDbgmodelSessionActivationTest
|
||||
extends AbstractModelForDbgengSessionActivationTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
return new InVmDbgmodelModelHost();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.dbgmodel.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengSteppableTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelSteppableTest extends AbstractModelForDbgengSteppableTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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,15 +17,19 @@ package agent.dbgmodel.model.invm;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.dbgeng.model.AbstractModelForDbgengThreadActivationTest;
|
||||
import ghidra.dbg.target.TargetInterpreter;
|
||||
import ghidra.dbg.target.TargetObject;
|
||||
import ghidra.dbg.util.PathPattern;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelThreadActivationTest
|
||||
extends AbstractModelForDbgengThreadActivationTest {
|
||||
|
||||
@Override
|
||||
protected PathPattern getThreadPattern() {
|
||||
return new PathPattern(PathUtils.parse("Sessions[0x0].Processes[].Threads[]"));
|
||||
}
|
||||
|
@ -40,6 +44,7 @@ public class InVmModelForDbgmodelThreadActivationTest
|
|||
return PathUtils.parse("Sessions[0x0]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdFromCapture(String line) {
|
||||
return "0x" + line.split("\\s+")[3].split("\\.")[1];
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -24,6 +24,7 @@ import org.junit.Test;
|
|||
import agent.dbgeng.model.AbstractModelForDbgengX64RegistersTest;
|
||||
import ghidra.dbg.util.PathUtils;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForDbgmodelX64RegistersTest extends AbstractModelForDbgengX64RegistersTest {
|
||||
|
||||
public final Map<String, byte[]> REG_VALSX = Map.ofEntries(
|
||||
|
|
|
@ -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.
|
||||
|
@ -176,7 +176,7 @@ public interface FridaGadpServer extends AutoCloseable {
|
|||
* {@link #terminate()}, or 3) When an error occurs causing the server to terminate
|
||||
* unexpectedly. Otherwise, it returns true.
|
||||
*
|
||||
* @returns true if the server is currently running.
|
||||
* @return true if the server is currently running.
|
||||
*/
|
||||
public boolean isRunning();
|
||||
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.frida.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaFactoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForFridaFactoryTest extends AbstractModelForFridaFactoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -21,7 +21,8 @@ import org.junit.Test;
|
|||
import agent.frida.model.AbstractModelForFridaInterpreterTest;
|
||||
import ghidra.dbg.test.ProvidesTargetViaLaunchSpecimen;
|
||||
|
||||
public class GadpModelForFridaInterpreterTest extends AbstractModelForFridaInterpreterTest
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForFridaInterpreterTest extends AbstractModelForFridaInterpreterTest
|
||||
implements ProvidesTargetViaLaunchSpecimen {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
@ -61,4 +62,3 @@ public class GadpModelForFridaInterpreterTest extends AbstractModelForFridaInter
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.frida.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaRootLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForFridaRootLauncherTest extends AbstractModelForFridaRootLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.frida.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaScenarioStackTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForFridaScenarioStackTest extends AbstractModelForFridaScenarioStackTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,13 +15,16 @@
|
|||
*/
|
||||
package agent.frida.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaX64RegistersTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForFridaX64RegistersTest extends AbstractModelForFridaX64RegistersTest {
|
||||
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
return new GadpFridaModelHost();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.frida.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaFactoryTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaFactoryTest extends AbstractModelForFridaFactoryTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -23,6 +23,7 @@ import agent.frida.model.AbstractModelForFridaInterpreterTest;
|
|||
import generic.test.category.NightlyCategory;
|
||||
import ghidra.dbg.test.ProvidesTargetViaLaunchSpecimen;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaInterpreterTest extends AbstractModelForFridaInterpreterTest
|
||||
implements ProvidesTargetViaLaunchSpecimen {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.frida.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaMethodsTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaMethodsTest extends AbstractModelForFridaMethodsTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,6 +22,7 @@ import org.junit.experimental.categories.Category;
|
|||
import agent.frida.model.AbstractModelForFridaRootAttacherTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaRootAttacherTest extends AbstractModelForFridaRootAttacherTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.frida.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaRootLauncherTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaRootLauncherTest extends AbstractModelForFridaRootLauncherTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.frida.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaScenarioStackTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaScenarioStackTest extends AbstractModelForFridaScenarioStackTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.frida.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.frida.model.AbstractModelForFridaX64RegistersTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForFridaX64RegistersTest extends AbstractModelForFridaX64RegistersTest {
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||
|
||||
[project]
|
||||
name = "ghidragdb"
|
||||
version = "11.1.2"
|
||||
version = "11.2"
|
||||
authors = [
|
||||
{ name="Ghidra Development Team" },
|
||||
]
|
||||
|
@ -17,7 +17,7 @@ classifiers = [
|
|||
"Operating System :: OS Independent",
|
||||
]
|
||||
dependencies = [
|
||||
"ghidratrace==11.1.2",
|
||||
"ghidratrace==11.2",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
|
|
@ -22,6 +22,7 @@ import gdb
|
|||
language_map = {
|
||||
'aarch64': ['AARCH64:BE:64:v8A', 'AARCH64:LE:64:AppleSilicon', 'AARCH64:LE:64:v8A'],
|
||||
'aarch64:ilp32': ['AARCH64:BE:32:ilp32', 'AARCH64:LE:32:ilp32', 'AARCH64:LE:64:AppleSilicon'],
|
||||
'arm': ['ARM:BE:32:v8', 'ARM:BE:32:v8T', 'ARM:LE:32:v8', 'ARM:LE:32:v8T'],
|
||||
'arm_any': ['ARM:BE:32:v8', 'ARM:BE:32:v8T', 'ARM:LE:32:v8', 'ARM:LE:32:v8T'],
|
||||
'armv2': ['ARM:BE:32:v4', 'ARM:LE:32:v4'],
|
||||
'armv2a': ['ARM:BE:32:v4', 'ARM:LE:32:v4'],
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
from contextlib import contextmanager
|
||||
import inspect
|
||||
|
@ -1200,12 +1200,13 @@ def ghidra_trace_put_environment(*, is_mi, **kwargs):
|
|||
put_environment()
|
||||
|
||||
|
||||
def put_regions():
|
||||
def put_regions(regions=None):
|
||||
inf = gdb.selected_inferior()
|
||||
try:
|
||||
regions = util.REGION_INFO_READER.get_regions()
|
||||
except Exception:
|
||||
regions = []
|
||||
if regions is None:
|
||||
try:
|
||||
regions = util.REGION_INFO_READER.get_regions()
|
||||
except Exception:
|
||||
regions = []
|
||||
if len(regions) == 0 and gdb.selected_thread() is not None:
|
||||
regions = [util.REGION_INFO_READER.full_mem()]
|
||||
mapper = STATE.trace.memory_mapper
|
||||
|
@ -1229,6 +1230,7 @@ def put_regions():
|
|||
regobj.insert()
|
||||
STATE.trace.proxy_object_path(
|
||||
MEMORY_PATTERN.format(infnum=inf.num)).retain_values(keys)
|
||||
return regions
|
||||
|
||||
|
||||
@cmd('ghidra trace put-regions', '-ghidra-trace-put-regions', gdb.COMMAND_DATA,
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
import functools
|
||||
import time
|
||||
|
@ -33,11 +33,10 @@ GhidraHookPrefix()
|
|||
|
||||
|
||||
class HookState(object):
|
||||
__slots__ = ('installed', 'mem_catchpoint', 'batch', 'skip_continue', 'in_break_w_cont')
|
||||
__slots__ = ('installed', 'batch', 'skip_continue', 'in_break_w_cont')
|
||||
|
||||
def __init__(self):
|
||||
self.installed = False
|
||||
self.mem_catchpoint = None
|
||||
self.batch = None
|
||||
self.skip_continue = False
|
||||
self.in_break_w_cont = False
|
||||
|
@ -64,7 +63,7 @@ class InferiorState(object):
|
|||
def __init__(self):
|
||||
self.first = True
|
||||
# For things we can detect changes to between stops
|
||||
self.regions = False
|
||||
self.regions = []
|
||||
self.modules = False
|
||||
self.threads = False
|
||||
self.breaks = False
|
||||
|
@ -107,13 +106,10 @@ class InferiorState(object):
|
|||
print(f"Couldn't record page with SP: {e}")
|
||||
self.visited.add(hashable_frame)
|
||||
# NB: These commands (put_modules/put_regions) will fail if the process is running
|
||||
if first or self.regions or self.threads or self.modules:
|
||||
# Sections, memory syscalls, or stack allocations
|
||||
commands.put_modules()
|
||||
self.modules = False
|
||||
commands.put_regions()
|
||||
self.regions = False
|
||||
elif first or self.modules:
|
||||
regions_changed, regions = util.REGION_INFO_READER.have_changed(self.regions)
|
||||
if regions_changed:
|
||||
self.regions = commands.put_regions(regions)
|
||||
if first or self.modules:
|
||||
commands.put_modules()
|
||||
self.modules = False
|
||||
if first or self.breaks:
|
||||
|
@ -252,14 +248,6 @@ def on_frame_selected():
|
|||
commands.activate()
|
||||
|
||||
|
||||
@log_errors
|
||||
def on_syscall_memory():
|
||||
inf = gdb.selected_inferior()
|
||||
if inf.num not in INF_STATES:
|
||||
return
|
||||
INF_STATES[inf.num].regions = True
|
||||
|
||||
|
||||
@log_errors
|
||||
def on_memory_changed(event):
|
||||
inf = gdb.selected_inferior()
|
||||
|
@ -287,7 +275,8 @@ def on_register_changed(event):
|
|||
# For now, just record the lot
|
||||
HOOK_STATE.ensure_batch()
|
||||
with trace.open_tx("Register {} changed".format(event.regnum)):
|
||||
commands.putreg(event.frame, util.get_register_descs(event.frame.architecture()))
|
||||
commands.putreg(event.frame, util.get_register_descs(
|
||||
event.frame.architecture()))
|
||||
|
||||
|
||||
@log_errors
|
||||
|
@ -311,7 +300,7 @@ def check_for_continue(event):
|
|||
if HOOK_STATE.in_break_w_cont:
|
||||
return True
|
||||
for brk in event.breakpoints:
|
||||
if hasattr(brk, 'commands'):
|
||||
if hasattr(brk, 'commands') and brk.commands is not None:
|
||||
for cmd in brk.commands:
|
||||
if cmd == 'c' or cmd.startswith('cont'):
|
||||
HOOK_STATE.in_break_w_cont = True
|
||||
|
@ -319,12 +308,9 @@ def check_for_continue(event):
|
|||
HOOK_STATE.in_break_w_cont = False
|
||||
return False
|
||||
|
||||
|
||||
|
||||
@log_errors
|
||||
def on_stop(event):
|
||||
if hasattr(event, 'breakpoints') and HOOK_STATE.mem_catchpoint in event.breakpoints:
|
||||
HOOK_STATE.skip_continue = True
|
||||
return
|
||||
if check_for_continue(event):
|
||||
HOOK_STATE.skip_continue = True
|
||||
return
|
||||
|
@ -416,8 +402,6 @@ def on_breakpoint_created(b):
|
|||
|
||||
@log_errors
|
||||
def on_breakpoint_modified(b):
|
||||
if b == HOOK_STATE.mem_catchpoint:
|
||||
return
|
||||
inf = gdb.selected_inferior()
|
||||
notify_others_breaks(inf)
|
||||
if inf.num not in INF_STATES:
|
||||
|
@ -466,20 +450,6 @@ def on_before_prompt():
|
|||
HOOK_STATE.end_batch()
|
||||
|
||||
|
||||
# This will be called by a catchpoint
|
||||
class GhidraTraceEventMemoryCommand(gdb.Command):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__('hooks-ghidra event-memory', gdb.COMMAND_NONE)
|
||||
|
||||
def invoke(self, argument, from_tty):
|
||||
self.dont_repeat()
|
||||
on_syscall_memory()
|
||||
|
||||
|
||||
GhidraTraceEventMemoryCommand()
|
||||
|
||||
|
||||
def cmd_hook(name):
|
||||
|
||||
def _cmd_hook(func):
|
||||
|
@ -556,21 +526,6 @@ def install_hooks():
|
|||
# Respond to user-driven state changes: (Not target-driven)
|
||||
gdb.events.memory_changed.connect(on_memory_changed)
|
||||
gdb.events.register_changed.connect(on_register_changed)
|
||||
# Respond to target-driven memory map changes:
|
||||
# group:memory is actually a bit broad, but will probably port better
|
||||
# One alternative is to name all syscalls that cause a change....
|
||||
# Ones we could probably omit:
|
||||
# msync,
|
||||
# (Deals in syncing file-backed pages to disk.)
|
||||
# mlock, munlock, mlockall, munlockall, mincore, madvise,
|
||||
# (Deal in paging. Doesn't affect valid addresses.)
|
||||
# mbind, get_mempolicy, set_mempolicy, migrate_pages, move_pages
|
||||
# (All NUMA stuff)
|
||||
#
|
||||
if HOOK_STATE.mem_catchpoint is not None:
|
||||
HOOK_STATE.mem_catchpoint.enabled = True
|
||||
else:
|
||||
HOOK_STATE.mem_catchpoint = util.MEM_CATCHPOINT_SETTER.install_catchpoint()
|
||||
|
||||
gdb.events.cont.connect(on_cont)
|
||||
gdb.events.stop.connect(on_stop)
|
||||
|
@ -605,7 +560,6 @@ def remove_hooks():
|
|||
|
||||
gdb.events.memory_changed.disconnect(on_memory_changed)
|
||||
gdb.events.register_changed.disconnect(on_register_changed)
|
||||
HOOK_STATE.mem_catchpoint.enabled = False
|
||||
|
||||
gdb.events.cont.disconnect(on_cont)
|
||||
gdb.events.stop.disconnect(on_stop)
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
## ###
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# IP: GHIDRA
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
##
|
||||
from collections import namedtuple
|
||||
import bisect
|
||||
|
@ -245,6 +245,14 @@ class RegionInfoReader(object):
|
|||
sizeptr = int(gdb.parse_and_eval('sizeof(void*)')) * 8
|
||||
return Region(0, 1 << sizeptr, 0, None, 'full memory')
|
||||
|
||||
def have_changed(self, regions):
|
||||
if len(regions) == 1 and regions[0].objfile == 'full memory':
|
||||
return False, None
|
||||
new_regions = self.get_regions()
|
||||
if new_regions == regions:
|
||||
return False, None
|
||||
return True, new_regions
|
||||
|
||||
|
||||
class RegionInfoReaderV8(RegionInfoReader):
|
||||
cmd = REGIONS_CMD
|
||||
|
@ -344,41 +352,6 @@ def _choose_breakpoint_location_info_reader():
|
|||
BREAKPOINT_LOCATION_INFO_READER = _choose_breakpoint_location_info_reader()
|
||||
|
||||
|
||||
class MemCatchpointSetterV8(object):
|
||||
def install_catchpoint(self):
|
||||
return object()
|
||||
|
||||
|
||||
class MemCatchpointSetterV11(object):
|
||||
def install_catchpoint(self):
|
||||
breaks_before = set(gdb.breakpoints())
|
||||
try:
|
||||
gdb.execute("""
|
||||
catch syscall group:memory
|
||||
commands
|
||||
silent
|
||||
hooks-ghidra event-memory
|
||||
cont
|
||||
end
|
||||
""")
|
||||
return (set(gdb.breakpoints()) - breaks_before).pop()
|
||||
except Exception as e:
|
||||
print(f"Error setting memory catchpoint: {e}")
|
||||
return object()
|
||||
|
||||
|
||||
def _choose_mem_catchpoint_setter():
|
||||
if GDB_VERSION.major >= 11:
|
||||
return MemCatchpointSetterV11()
|
||||
if GDB_VERSION.major >= 8:
|
||||
return MemCatchpointSetterV8()
|
||||
else:
|
||||
raise gdb.GdbError(
|
||||
"GDB version not recognized by ghidragdb: " + GDB_VERSION.full)
|
||||
|
||||
|
||||
MEM_CATCHPOINT_SETTER = _choose_mem_catchpoint_setter()
|
||||
|
||||
def set_bool_param_by_api(name, value):
|
||||
gdb.set_parameter(name, value)
|
||||
|
||||
|
@ -418,18 +391,23 @@ def get_register_descs(arch, group='all'):
|
|||
if hasattr(arch, "registers"):
|
||||
try:
|
||||
return arch.registers(group)
|
||||
except ValueError: # No such group, or version too old
|
||||
except ValueError: # No such group, or version too old
|
||||
return arch.registers()
|
||||
else:
|
||||
descs = []
|
||||
regset = gdb.execute(
|
||||
f"info registers {group}", to_string=True).strip().split('\n')
|
||||
try:
|
||||
regset = gdb.execute(
|
||||
f"info registers {group}", to_string=True).strip().split('\n')
|
||||
except Exception as e:
|
||||
regset = gdb.execute(
|
||||
f"info registers", to_string=True).strip().split('\n')
|
||||
for line in regset:
|
||||
if not line.startswith(" "):
|
||||
tokens = line.strip().split()
|
||||
descs.append(RegisterDesc(tokens[0]))
|
||||
return descs
|
||||
|
||||
|
||||
|
||||
def selected_frame():
|
||||
try:
|
||||
return gdb.selected_frame()
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,10 +20,12 @@ import static org.junit.Assert.*;
|
|||
import java.util.*;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import agent.gdb.manager.parsing.GdbMiParser.GdbMiFieldList;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GdbTableTest {
|
||||
protected GdbMiFieldList buildFieldList(Consumer<GdbMiFieldList.Builder> conf) {
|
||||
GdbMiFieldList.Builder builder = GdbMiFieldList.builder();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -18,12 +18,14 @@ package agent.gdb.manager.impl;
|
|||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import agent.gdb.manager.parsing.GdbCValueParser;
|
||||
import agent.gdb.manager.parsing.GdbCValueParser.*;
|
||||
import agent.gdb.manager.parsing.GdbParsingUtils.GdbParseError;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GdbCValueParserTest {
|
||||
@Test
|
||||
public void testIntegerZero() throws GdbParseError {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -20,10 +20,12 @@ import static org.junit.Assert.assertEquals;
|
|||
import java.math.BigInteger;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import agent.gdb.manager.impl.cmd.GdbReadRegistersCommand;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GdbReadRegistersCommandTest {
|
||||
@Test
|
||||
public void testParseAndFindInteger_Integer() throws Exception {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -27,7 +27,7 @@ import ghidra.pty.linux.LinuxIoctls;
|
|||
import ghidra.pty.unix.UnixPty;
|
||||
import ghidra.util.Msg;
|
||||
|
||||
@Ignore("Need compatible GDB version for CI")
|
||||
@Ignore("Need compatible GDB version for CI, deprecated")
|
||||
public class JoinedGdbManagerTest extends AbstractGdbManagerTest {
|
||||
protected class ReaderThread extends Thread {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,7 +22,7 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.gdb.manager.GdbManager;
|
||||
|
||||
@Ignore("Need compatible GDB version for CI")
|
||||
@Ignore("Need compatible GDB version for CI, deprecated")
|
||||
public class SpawnedCliGdbManagerTest extends AbstractGdbManagerTest {
|
||||
@Override
|
||||
protected CompletableFuture<Void> startManager(GdbManager manager) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -23,7 +23,7 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.gdb.manager.GdbManager;
|
||||
|
||||
@Ignore("Need to install GDB 7.6.1 to the expected directory on CI")
|
||||
@Ignore("Need to install GDB 7.6.1 to the expected directory on CI, deprecated")
|
||||
public class SpawnedMi2Gdb7Dot6Dot1ManagerTest extends AbstractGdbManagerTest {
|
||||
@Override
|
||||
protected File findGdbBin() {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -23,7 +23,7 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.gdb.manager.GdbManager;
|
||||
|
||||
@Ignore("Does not exist on CI")
|
||||
@Ignore("Does not exist on CI, deprecated")
|
||||
public class SpawnedMi2GdbHomeLocalManagerTest extends AbstractGdbManagerTest {
|
||||
@Override
|
||||
protected File findGdbBin() {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,7 +22,7 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.gdb.manager.GdbManager;
|
||||
|
||||
@Ignore("Need compatible version install on CI")
|
||||
@Ignore("Need compatible version install on CI, deprecated")
|
||||
public class SpawnedMi2GdbSystemManagerTest extends AbstractGdbManagerTest {
|
||||
@Override
|
||||
protected CompletableFuture<Void> startManager(GdbManager manager) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,7 +22,7 @@ import org.junit.Ignore;
|
|||
|
||||
import agent.gdb.manager.GdbManager;
|
||||
|
||||
@Ignore("Need compatible version on CI")
|
||||
@Ignore("Need compatible version on CI, deprecated")
|
||||
public class SpawnedWindowsMi2GdbManagerTest extends AbstractGdbManagerTest {
|
||||
@Override
|
||||
protected CompletableFuture<Void> startManager(GdbManager manager) {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -22,11 +22,13 @@ import java.util.List;
|
|||
import java.util.function.Consumer;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import agent.gdb.manager.parsing.GdbMiParser.GdbMiFieldList;
|
||||
import agent.gdb.manager.parsing.GdbParsingUtils.GdbParseError;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GdbMiParserTest {
|
||||
protected GdbMiFieldList buildFieldList(Consumer<GdbMiFieldList.Builder> conf) {
|
||||
GdbMiFieldList.Builder builder = GdbMiFieldList.builder();
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbBreakpointsTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbBreakpointsTest extends AbstractModelForGdbBreakpointsTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbFactoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbFactoryTest extends AbstractModelForGdbFactoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbInferiorAttacherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbInferiorAttacherTest extends AbstractModelForGdbInferiorAttacherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbInferiorLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbInferiorLauncherTest extends AbstractModelForGdbInferiorLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbInterpreterTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbInterpreterTest extends AbstractModelForGdbInterpreterTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbScenarioForkExitTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbScenarioForkExitTest extends AbstractModelForGdbScenarioForkExitTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbSessionAttacherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbSessionAttacherTest extends AbstractModelForGdbSessionAttacherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.gadp;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbSessionLauncherTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class GadpModelForGdbSessionLauncherTest extends AbstractModelForGdbSessionLauncherTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.gdb.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbAmd64RegistersTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForGdbAmd64RegistersTest extends AbstractModelForGdbAmd64RegistersTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,11 +15,13 @@
|
|||
*/
|
||||
package agent.gdb.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.experimental.categories.Category;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbBreakpointsTest;
|
||||
import generic.test.category.NightlyCategory;
|
||||
|
||||
@Ignore("deprecated")
|
||||
@Category(NightlyCategory.class) // this may actually be an @PortSensitive test
|
||||
public class InVmModelForGdbBreakpointsTest extends AbstractModelForGdbBreakpointsTest {
|
||||
@Override
|
||||
|
|
|
@ -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
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
|
@ -15,8 +15,11 @@
|
|||
*/
|
||||
package agent.gdb.model.invm;
|
||||
|
||||
import org.junit.Ignore;
|
||||
|
||||
import agent.gdb.model.AbstractModelForGdbFactoryTest;
|
||||
|
||||
@Ignore("deprecated")
|
||||
public class InVmModelForGdbFactoryTest extends AbstractModelForGdbFactoryTest {
|
||||
@Override
|
||||
public ModelHost modelHost() throws Throwable {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user