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

Examin memory location #64

Closed
jameskozlowski opened this issue Jun 19, 2016 · 4 comments
Closed

Examin memory location #64

jameskozlowski opened this issue Jun 19, 2016 · 4 comments

Comments

@jameskozlowski
Copy link

I would love a way to examine memory locations with GDB (ARM GDB) via the "x adr" command. by manually entering in locations and lengths, or even better by expanding pointers.

@WebFreak001
Copy link
Owner

Any suggestions how to show this in vscode? Debug extensions have even less control over the UI than regular extensions.

Maybe entering something like [0x7fffffffddd8+20] into the WATCH section could print the memory there.

However there is a big disadvantage there: the space for that is super small and it couldn't fit lot of data

@jameskozlowski
Copy link
Author

I don't know much about VS extensions, but could you read the memory and create a new unsaved file with the data in in?

@WebFreak001
Copy link
Owner

Oh good idea! Didn't even think of that because the debugger doesn't actually have any API for that. However I think with some tricks via the filesystem and interprocess communication I can actually give that data to the plugin part which has the APIs to do that.

You can probably expect this feature to get added within the next 10 days

@WebFreak001
Copy link
Owner

and not a day to late :D

You can now press Ctrl-Shift-P -> Examine Memory Location and then either enter

  • a range in the format from-to where from and to are hex numbers prefixed with 0x
  • a range in the format from+length where from is a hex number prefixed with 0x and length is any number
  • directly the location as hex number which will display the 32 bytes before that and 768 bytes after that

The hex viewer also has the basic functionality to show the ascii values at the right to find text in the memory

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

No branches or pull requests

2 participants