Skip to content

Commit

Permalink
gef-remote: Fix issue with remote path having a space (#998)
Browse files Browse the repository at this point in the history
Fix where we have trouble figuring out the
memory map when the remote's path has a space in it.

It's due to how we generate a GDB command.
  • Loading branch information
Grazfather committed Aug 25, 2023
1 parent d6ce056 commit bba5f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Expand Up @@ -10902,7 +10902,7 @@ def sync(self, src: str, dst: Optional[str] = None) -> bool:
return True
tgt.parent.mkdir(parents=True, exist_ok=True)
dbg(f"[remote] downloading '{src}' -> '{tgt}'")
gdb.execute(f"remote get {src} {tgt.absolute()}")
gdb.execute(f"remote get '{src}' '{tgt.absolute()}'")
return tgt.exists()

def connect(self, pid: int) -> bool:
Expand Down

0 comments on commit bba5f1c

Please sign in to comment.