-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Root has current API, experimental/ folder will have future stuff, and obviously, legacy/ contains the older modules. Mainly only if module rewrites are a thing.
- Loading branch information
Showing
68 changed files
with
203 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.breakpoint; | ||
module adbg.debugger.breakpoint; | ||
|
||
import adbg.v2.debugger.process; | ||
import adbg.debugger.process; | ||
import adbg.error; | ||
|
||
extern (C): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.context; | ||
module adbg.debugger.context; | ||
|
||
import adbg.v2.debugger.process : adbg_process_t; | ||
import adbg.debugger.process : adbg_process_t; | ||
import adbg.include.c.stdio : snprintf; | ||
import adbg.error; | ||
|
||
|
@@ -102,7 +102,7 @@ void adbg_context_start(adbg_thread_context_t *ctx, adbg_process_t *tracee) { | |
} | ||
|
||
int adbg_context_fill(adbg_process_t *tracee, adbg_thread_context_t *ctx) { | ||
import adbg.v2.debugger.process : AdbgCreation; | ||
import adbg.debugger.process : AdbgCreation; | ||
|
||
version (Trace) trace("tracee=%p ctx=%p", ctx, tracee); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.exception; | ||
module adbg.debugger.exception; | ||
|
||
version (Windows) { | ||
import core.sys.windows.winbase; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.memory; | ||
module adbg.debugger.memory; | ||
|
||
import adbg.v2.debugger.process : adbg_process_t; | ||
import adbg.debugger.process : adbg_process_t; | ||
import adbg.include.c.stdlib; | ||
import adbg.include.c.stdio; | ||
import adbg.include.c.stdarg; | ||
|
@@ -723,7 +723,7 @@ struct adbg_scan_result_t { | |
/// | ||
/// Returns: An instance of the scanner or null on error. | ||
adbg_scan_t* adbg_memory_scan(adbg_process_t *tracee, void* data, size_t datasize, ...) { | ||
import adbg.v2.debugger.process : AdbgStatus; | ||
import adbg.debugger.process : AdbgStatus; | ||
|
||
/// Until scanner gets better internals for variable-length | ||
/// data types. Don't want to scan gigabyte-sized types now. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module adbg.debugger; | ||
|
||
public import | ||
adbg.debugger.process, | ||
adbg.debugger.context, | ||
adbg.debugger.exception, | ||
adbg.debugger.memory, | ||
adbg.debugger.seh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.process; | ||
module adbg.debugger.process; | ||
|
||
//TODO: Process Pause/Resume | ||
// Windows: NtSuspendProcess/NtResumeProcess or SuspendThread/ResumeThread | ||
|
@@ -22,9 +22,9 @@ import adbg.include.c.stdarg; | |
import adbg.platform; | ||
import adbg.error; | ||
import adbg.utils.strings : adbg_util_argv_flatten; | ||
import adbg.v2.debugger.exception : adbg_exception_t, adbg_exception_translate; | ||
import adbg.v2.debugger.breakpoint : adbg_breakpoint_t; | ||
import adbg.v2.object.machines; | ||
import adbg.debugger.exception : adbg_exception_t, adbg_exception_translate; | ||
import adbg.debugger.breakpoint : adbg_breakpoint_t; | ||
import adbg.object.machines; | ||
import core.stdc.string : memset; | ||
|
||
version (Windows) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.debugger.seh; | ||
module adbg.debugger.seh; | ||
|
||
//TODO: adbg_seh_disable | ||
//TODO: Would be cool to have try/catch mechanic | ||
|
@@ -12,7 +12,7 @@ module adbg.v2.debugger.seh; | |
import adbg.error; | ||
|
||
version (Windows) { | ||
import adbg.v2.debugger.exception; | ||
import adbg.debugger.exception; | ||
import adbg.include.windows.windef; | ||
import adbg.include.c.setjmp; | ||
|
||
|
@@ -36,7 +36,7 @@ version (Windows) { | |
PVOID AddVectoredExceptionHandler(ULONG, PVECTORED_EXCEPTION_HANDLER); | ||
} | ||
} else version (Posix) { | ||
import adbg.v2.debugger.exception; | ||
import adbg.debugger.exception; | ||
import adbg.include.c.setjmp; | ||
import core.sys.posix.signal; | ||
import core.sys.posix.ucontext; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,17 +7,17 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.disassembler.core; | ||
module adbg.disassembler.core; | ||
|
||
import adbg.include.capstone; | ||
import adbg.include.c.stdarg; | ||
import core.stdc.string : memcpy; | ||
import adbg.error; | ||
import adbg.platform; | ||
import adbg.v2.debugger.process : adbg_process_t; | ||
import adbg.v2.object.machines : AdbgMachine, adbg_object_machine_alias; | ||
import adbg.v2.debugger.exception : adbg_exception_t; | ||
import adbg.v2.debugger.memory : adbg_memory_read; | ||
import adbg.debugger.process : adbg_process_t; | ||
import adbg.object.machines : AdbgMachine, adbg_object_machine_alias; | ||
import adbg.debugger.exception : adbg_exception_t; | ||
import adbg.debugger.memory : adbg_memory_read; | ||
|
||
//TODO: Capstone CS_MODE_BIG_ENDIAN | ||
// Depending on target endianness, Capstone may need this bit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
/// Authors: dd86k <[email protected]> | ||
/// Copyright: © dd86k <[email protected]> | ||
/// License: BSD-3-Clause | ||
module adbg.v2.disassembler; | ||
module adbg.disassembler; | ||
|
||
public import adbg.v2.disassembler.core; | ||
public import adbg.disassembler.core; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.