Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite memory module to use GDB's "x" output #306

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

nwlyoc
Copy link

@nwlyoc nwlyoc commented Dec 18, 2023

I missed a convenient way to constantly watch a memory region with the format options of GDB's "x" command (e. g. watching not only single bytes). This is a rewrite of the memory module to achieve this.

Instead of getting a raw memory dump like before, an "x" command is created, evaluated by GDB and its output is formatted according to the dashboard settings. The watch command of the previous memory module can be used and extended for backwards compatibility. Alternatively the watch command also accepts an "x" command as it would be entered into GDB directly.

I understand that this might not be a wanted feature to integrate as discussed in #21, but I find this very useful and wanted to leave this here for anyone interested even if it won't be integrated.

edit/added screenshot:
screenshot

This is a rewrite of the memory module to enable watching a memory
region with the format options of GDB's "x" command. Instead of
getting a raw memory dump like before, an "x" command is created,
evaluated by GDB and its output is formatted according to the
dashboard settings. The watch command of the previous memory
module can be used and extended for backwards compatibility.
Alternatively the watch command also accepts an "x" command as
it would be entered into GDB directly.
Instructions and strings have variable sizes, so the addresses for
consecutive objects can't be calculated. To fix this, display only one
object per line when the format is "i" or "s" (like in GDB's x output)
and keep the addresses from GDB's output. This also has the benefit of
displaying address tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant