Open
Conversation
…y/gef into hugsy/revisit-target-remote
9 tasks
Grazfather
reviewed
Mar 31, 2025
Collaborator
Grazfather
left a comment
There was a problem hiding this comment.
Seems to work pretty well even with an openocd gdb server. Will have to do more testing but we can probably remove the 'special' gef remote commands in gef-extras
docs/commands/gef-remote.md
Outdated
| traditional `target remote` command. For many reasons, you **should not** use `target remote` alone | ||
| with GEF. It is still important to note that the default `target remote` command has been | ||
| overwritten by a minimal copy `gef-remote`, in order to make most tools relying on this command work. | ||
| 📝 **IMPORTANT NOTE**: `gef-remote` is deprecated since 2024.09 in favor of `target remote`. The |
Collaborator
There was a problem hiding this comment.
I guess it'll be the next release
| # pre-hooks | ||
| gdb.execute(hook.format("remote", "")) | ||
| gdb.execute(hook.format("extended-remote", "")) | ||
| # post-hooks |
Collaborator
There was a problem hiding this comment.
This is probably OK if we update what versions of GDB are supported.
|
when running the following arm program: the main branch works fine with the follwing: but using the gef from this branch is failing: |
Owner
Author
|
@micsthepick I think you need to provide the |
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR obsoletes
gef-remoteto be completely replaced by pre and post hooks ontarget remotedirectly.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
syncthing is not necessary any longer.Fixes #1080
Fixes #1128
Checklist