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

The editor doesn't handle correctly memory access errors #155

Open
AdrianOltean opened this issue Jan 30, 2025 · 0 comments
Open

The editor doesn't handle correctly memory access errors #155

AdrianOltean opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AdrianOltean
Copy link

AdrianOltean commented Jan 30, 2025

Description
Various memory areas in an embedded system can be inaccessible at some point, before an actual configuration/enablement. When Memory Inspector asks for memory to be read, the request eventually reaches a (GDB) debug server that might return a memory access error. Looks like Memory Inspector is not very good at handling such a situation and it simply reports "No results found".

How to reproduce:

  1. NXP SDK, NXP LPC55S69 board, a J-Link debug probe. Should not matter as long as you can replicate what's written above.
  2. MCUXpresso for VS Code extension installed.
  3. Import a "Hello World" project using the MCUXpresso for VS Code extension.
  4. Debug.
  5. Start Memory Inspector and jump to address 0x20000000.
  6. Load 128 more bytes above. At this point, address at 0x1FFFFF00 is inaccessible.

Or try to replicate the basic idea (assume some memory area is invalid and try to access it from Memory Inspector) by some other means, other setup.

Expected behavior
Memory Inspector should make it clear that memory cannot be accessed.

Environment

  • OS: Windows 11
  • Theia or VS Code Version: VS Code 1.96.4

Additional information

GDB debug server reports error but Memory Inspector simply shows "No results found":

Image

@AdrianOltean AdrianOltean added the bug Something isn't working label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant