Fix the lexing of arguments in LLDB to match the behavior of gdb.string_to_argv. (#2566)

pull/2569/head
patryk4815 1 year ago committed by GitHub
parent cd89c9d26c
commit cd7efad5f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,6 +4,7 @@ import bisect
import collections import collections
import os import os
import random import random
import shlex
import sys import sys
from typing import Any from typing import Any
from typing import Awaitable from typing import Awaitable
@ -1556,7 +1557,7 @@ class LLDB(pwndbg.dbg_mod.Debugger):
@override @override
def lex_args(self, command_line: str) -> List[str]: def lex_args(self, command_line: str) -> List[str]:
return command_line.split() return shlex.split(command_line)
def _any_inferior(self) -> LLDBProcess | None: def _any_inferior(self) -> LLDBProcess | None:
""" """

Loading…
Cancel
Save