Skip to content

Use target remote for remote connections#1151

Open
hugsy wants to merge 60 commits intomainfrom
hugsy/revisit-target-remote
Open

Use target remote for remote connections#1151
hugsy wants to merge 60 commits intomainfrom
hugsy/revisit-target-remote

Conversation

@hugsy
Copy link
Copy Markdown
Owner

@hugsy hugsy commented Nov 3, 2024

Description

This PR obsoletes gef-remote to be completely replaced by pre and post hooks on target remote directly.
We use some heuristics to determine what type of remote we're connected to reliably.
In some old qemu, we still have to mock a memory layout, but the whole sync thing is not necessary any longer.

Fixes #1080
Fixes #1128

Checklist

  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • If my change adds new code, adequate tests have been added.
  • I have read and agree to the CONTRIBUTING document.

@hugsy hugsy mentioned this pull request Nov 3, 2024
8 tasks
@hugsy hugsy self-assigned this Nov 3, 2024
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 3, 2024

🤖 Coverage update for a277661 🔴

Old New
Commit 9fb1d71 a277661
Score 71.2662% 71.197% (-0.0692)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 4, 2024

🤖 Coverage update for 6d166f0 🔴

Old New
Commit 9fb1d71 6d166f0
Score 71.2662% 71.197% (-0.0692)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 5, 2024

🤖 Coverage update for 79447be 🔴

Old New
Commit 9fb1d71 79447be
Score 71.2662% 71.197% (-0.0692)

@hugsy hugsy linked an issue Nov 5, 2024 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2024

🤖 Coverage update for ea873bb 🔴

Old New
Commit 9fb1d71 ea873bb
Score 71.2662% 71.197% (-0.0692)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2024

🤖 Coverage update for 4ae683f 🔴

Old New
Commit 9fb1d71 4ae683f
Score 71.2662% 71.197% (-0.0692)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2024

🤖 Coverage update for 8130895 🔴

Old New
Commit 9fb1d71 8130895
Score 71.2662% 71.2358% (-0.0304)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 7, 2024

🤖 Coverage update for 7973a3f 🔴

Old New
Commit 9fb1d71 7973a3f
Score 71.2662% 71.197% (-0.0692)

@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 0fba0d1 🟢

Old New
Commit 0c95800 0fba0d1
Score 71.0775% 71.0775% (0)

@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 0fba0d1 🟢

Old New
Commit 0c95800 0fba0d1
Score 71.0775% 71.1251% (0.0476)

@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 02a5a69 🟢

Old New
Commit 0c95800 02a5a69
Score 71.0775% 71.0775% (0)

@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 02a5a69 🔴

Old New
Commit 0c95800 02a5a69
Score 71.0775% 70.4923% (-0.5852)

Comment thread docs/commands/gef-remote.md Outdated
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 487262c 🟢

Old New
Commit 0c95800 487262c
Score 71.0775% 71.0775% (0)

@github-actions
Copy link
Copy Markdown

🤖 Coverage update for 487262c 🔴

Old New
Commit 0c95800 487262c
Score 71.0775% 70.4731% (-0.6044)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 0eec953 🟢

Old New
Commit 90cced8 0eec953
Score 70.1989% 70.1989% (0)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for d590a91 🟢

Old New
Commit 90cced8 d590a91
Score 70.1989% 70.1989% (0)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for d590a91 🟢

Old New
Commit 90cced8 d590a91
Score 70.1989% 70.257% (0.0581)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 88fa262 🟢

Old New
Commit 90cced8 88fa262
Score 70.1989% 70.1989% (0)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 88fa262 🟢

Old New
Commit 90cced8 88fa262
Score 70.1989% 70.257% (0.0581)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 17caf86 🟢

Old New
Commit 90cced8 17caf86
Score 70.1989% 70.1989% (0)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 17caf86 🟢

Old New
Commit 90cced8 17caf86
Score 70.1989% 70.257% (0.0581)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

🤖 Coverage update for 28dc775 🟢

Old New
Commit 90cced8 28dc775
Score 70.1989% 70.257% (0.0581)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 Coverage update for 28dc775 🟢

Old New
Commit 90cced8 28dc775
Score 70.1989% 70.1989% (0)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 16 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/coverage.yml Outdated
Comment thread LICENSE Outdated
Comment thread tests/utils.py
Comment on lines +30 to 41
return (
[
x
for x in pathlib.Path("/etc/os-release").read_text().splitlines()
if x.startswith("ID=")
][0]
.strip()
.replace("ID=", "")
.replace('"', "")
)


Comment thread tests/base.py
Comment on lines +21 to +22
GDB_BINARY_PATH = which("gdb-multiarch")
RPYC_CONNECT_FAILURE_DELAY = 0.2
Comment thread tests/regressions/1131_target_remote_registers.py
Comment thread gef.py
Comment on lines 13284 to 13290
def target_remote_posthook():
if gef.session.remote_initializing:
return
conn = gdb.selected_inferior().connection
if not isinstance(conn, gdb.RemoteTargetConnection):
raise TypeError("Expected type gdb.RemoteTargetConnection")
assert is_target_remote_or_extended(conn), "Target is not remote"
gef.session.remote = GefRemoteSessionManager(conn)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 Coverage update for 525816f 🟢

Old New
Commit 90cced8 525816f
Score 70.1989% 70.1989% (0)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🤖 Coverage update for 525816f 🟢

Old New
Commit 90cced8 525816f
Score 70.1989% 70.257% (0.0581)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

6 participants