From cd7efad5f9e35f25c4d0327e08d2a0a97398b929 Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Sat, 23 Nov 2024 06:06:19 +0100 Subject: [PATCH] Fix the lexing of arguments in LLDB to match the behavior of gdb.string_to_argv. (#2566) --- pwndbg/dbg/lldb/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwndbg/dbg/lldb/__init__.py b/pwndbg/dbg/lldb/__init__.py index c80defd2f..3bb7eef08 100644 --- a/pwndbg/dbg/lldb/__init__.py +++ b/pwndbg/dbg/lldb/__init__.py @@ -4,6 +4,7 @@ import bisect import collections import os import random +import shlex import sys from typing import Any from typing import Awaitable @@ -1556,7 +1557,7 @@ class LLDB(pwndbg.dbg_mod.Debugger): @override def lex_args(self, command_line: str) -> List[str]: - return command_line.split() + return shlex.split(command_line) def _any_inferior(self) -> LLDBProcess | None: """