Skip to content

Conversation

@pnipin
Copy link

@pnipin pnipin commented Jan 6, 2026

Fix for: #645

CDT have added support for 64-bit memory addresses long before. Code changes for the support are in the class GdbMemoryBlockRetrieval which inherits from DsfMemoryBlockRetrieval. Embedded CDT launches are using GnuMcuLaunch class (Embedded CDT launcher, used to initialize the memory block retrieval used by the Peripherals view). This launcher uses PeripheralMemoryBlockRetrieval which directly inherits from DsfMemoryBlockRetrieval and misses the 64-bit support in GdbMemoryBlockRetrieval class. If parent class of PeripheralMemoryBlockRetrieval is changed to GdbMemoryBlockRetrieval memory view correctly displays the address contents.

@jonahgraham jonahgraham self-requested a review January 6, 2026 16:52
Copy link
Contributor

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On code inspection this looks right to me.

@ilg-ul
Copy link
Contributor

ilg-ul commented Jan 6, 2026

Is the GdbMemoryBlockRetrieval class available in the older Eclipse that these plugins are based on?

@pnipin
Copy link
Author

pnipin commented Jan 15, 2026

Is the GdbMemoryBlockRetrieval class available in the older Eclipse that these plugins are based on?

Based on my understanding, GdbMemoryBlockRetrieval is not available in the older Eclipse/CDT versions that the Embedded CDT plug-ins were based on.
Please see the commit history of this class below:
https://github.com/eclipse-cdt/cdt/commits/main/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/internal/memory/GdbMemoryBlockRetrieval.java

@ilg-ul
Copy link
Contributor

ilg-ul commented Jan 15, 2026

There is a plan to align the plug-ins with a more recent Eclipse version, but I'm not sure how long it'll take.

Please leave this PR open, we'll consider it when ready.

@pnipin
Copy link
Author

pnipin commented Jan 15, 2026

There is a plan to align the plug-ins with a more recent Eclipse version, but I'm not sure how long it'll take.

Please leave this PR open, we'll consider it when ready.

Ok, Thanks

@jonahgraham jonahgraham force-pushed the fix-64bit-memory-view branch from 9679976 to c64904a Compare January 26, 2026 22:03
@jonahgraham
Copy link
Contributor

I have rebased this on latest develop HEAD. This can be merged if CI reports success.

@jonahgraham
Copy link
Contributor

Based on my understanding, GdbMemoryBlockRetrieval is not available in the older Eclipse/CDT versions that the Embedded CDT plug-ins were based on.

GdbMemoryBlockRetrieval has been around long enough that the code builds ok. So I think this is good to go. I will merge this, and I look forward to @pnipin testing out the built version when it is available to ensure that it has integrated properly.

@jonahgraham jonahgraham merged commit 581648c into eclipse-embed-cdt:develop Jan 26, 2026
2 checks passed
@jonahgraham jonahgraham added this to the 6.7.0 milestone Jan 26, 2026
@jonahgraham
Copy link
Contributor

@pnipin Can you test out https://download.eclipse.org/embed-cdt/builds/develop/p2/ which now has this change and report back if it works correctly in your use case?

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.

3 participants