mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
305 B
Python
15 lines
305 B
Python
"""
|
|
Information about whether the debuggee is local (under GDB) or remote
|
|
(under GDBSERVER or QEMU stub).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pwndbg
|
|
import pwndbg.lib.cache
|
|
|
|
|
|
@pwndbg.lib.cache.cache_until("start")
|
|
def is_remote() -> bool:
|
|
return pwndbg.dbg.selected_inferior().is_remote()
|