Path to the file being debugged as seen by the remote endpoint.
(self)
| 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: |
nothing calls this directly
no outgoing calls
no test coverage detected