|
|
|
|
@ -21,10 +21,14 @@ def get_gdb_version(path: str) -> Tuple[str, str]:
|
|
|
|
|
capture_output=True,
|
|
|
|
|
text=True,
|
|
|
|
|
)
|
|
|
|
|
return tuple(result.stdout.strip().split(" ", 2))
|
|
|
|
|
|
|
|
|
|
arr = result.stdout.strip().split(" ", 1)
|
|
|
|
|
if len(arr) != 2:
|
|
|
|
|
return "", ""
|
|
|
|
|
return arr[0], arr[1]
|
|
|
|
|
|
|
|
|
|
def get_venv_bin_path():
|
|
|
|
|
|
|
|
|
|
def get_venv_bin_path() -> str:
|
|
|
|
|
bin_dir = "Scripts" if os.name == "nt" else "bin"
|
|
|
|
|
return os.path.join(sys.prefix, bin_dir)
|
|
|
|
|
|
|
|
|
|
@ -54,7 +58,7 @@ def main():
|
|
|
|
|
sys.argv = gdb_argv
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from gdb_for_pwndbg.gdb import main
|
|
|
|
|
from gdb_for_pwndbg.gdb import main # type: ignore[import-untyped]
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
|
return
|
|
|
|
|
|