mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-28 17:15:57 +08:00
GP-0 fix windows debugger testing issues
GP-0: mo'betta windoze gdb/lldb GP-0: error in args, switch to expPrint GP-0: gdb w/o bash (almost) GP-0: test GP-0: gdb commands (mostly) working GP-0: tear down failures GP-0: working on methods GP-0: gdb (linux) tests running (except testDelreg) GP-0: gdb (windows) mostly working GP-0: tmp GP-0: dbgeng tests clean GP-0: gdb tests working GP-0: ansi GP-0: CSI G GP-0: line endings again GP-0: which GP-0: dbgeng race GP-0: assertion timeout skip finally GP-0: windowsisms GP-0: wtak GP-0: review pass 1 GP-0: os -> cspec GP-0: better lldb methods GP-0: step out timing GP-0: x64dbg tweaks GP-0: TO BE REVERTED / FOR TESTING GP-0: half a solution GP-0: one more pass... GP-0: one mmmore pass...
This commit is contained in:
@@ -26,7 +26,9 @@ function Add-Gdb-Init-Args {
|
||||
$ArgList.Value+=("-ex", "`"python if not 'ghidragdb' in locals(): exit(253)`"")
|
||||
$ArgList.Value+=("-ex", "`"set architecture $Env:OPT_ARCH`"")
|
||||
$ArgList.Value+=("-ex", "`"set endian $Env:OPT_ENDIAN`"")
|
||||
$ArgList.Value+=($Env:OPT_GDB_ARGS)
|
||||
if ("$Env:OPT_GDB_ARGS" -ne "") {
|
||||
$ArgList.Value+=($Env:OPT_GDB_ARGS)
|
||||
}
|
||||
}
|
||||
|
||||
function Add-Gdb-Image-And-Args {
|
||||
|
||||
@@ -17,6 +17,7 @@ from concurrent.futures import Future
|
||||
from contextlib import contextmanager
|
||||
import inspect
|
||||
import os.path
|
||||
import re
|
||||
import socket
|
||||
import time
|
||||
from typing import (Any, Callable, Dict, Generator, List, Optional, Sequence,
|
||||
@@ -282,7 +283,7 @@ def compute_name() -> str:
|
||||
if progname is None:
|
||||
return 'gdb/noname'
|
||||
else:
|
||||
return 'gdb/' + progname.split('/')[-1]
|
||||
return 'gdb/' + re.split(r'(/|\\)', progname)[-1]
|
||||
|
||||
|
||||
def start_trace(name: str) -> None:
|
||||
|
||||
Reference in New Issue
Block a user