eclipse-cdt-cloud / eclipse-cdt-cloud/vscode-memory-inspector

The editor doesn't handle correctly memory access errors

Open
#155 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
17
Forks
25
Avg merge
3d 22h
Merged PRs (30d)
8

Description

**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](https://github.com/user-attachments/assets/fac31572-100c-4039-aae9-18d5edce41e2)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.