MCPcopy Create free account
hub / github.com/HexHive/NASS / file

Method file

tools/gef.py:10658–10666  ·  view source on GitHub ↗

Path to the file being debugged as seen by the remote endpoint.

(self)

Source from the content-addressed store, hash-verified

10656
10657 @property
10658 def file(self) -> pathlib.Path:
10659 """Path to the file being debugged as seen by the remote endpoint."""
10660 if not self._file:
10661 filename = gdb.current_progspace().filename
10662 if not filename:
10663 raise RuntimeError("No session started")
10664 start_idx = len("target:") if filename.startswith("target:") else 0
10665 self._file = pathlib.Path(filename[start_idx:])
10666 return self._file
10667
10668 @property
10669 def lfile(self) -> pathlib.Path:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected