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

Disassembly address handling improvement #348

Conversation

asimgunes
Copy link
Contributor

Hi @jonahgraham ,

We observe some issues in while using the disassembly in embedded devices due to sending disassemble request for negative memory regions. We implemented a code-update to limit the lower bound of the query to the address 0x0.

If we still need to fill more instructions depending on the DAP request, you may realise that we used relative addresses in the empty instructions (e.g. (0x00)-2, (0x00)-4 etc). This is arguable and I am happy to hear your thoughts. Simply the VSCode is ignoring these lines and not showing in the disassembly window (maybe because they are not convertable to number or bigint).

It was hard to check this behaviour in unit test, thus I implemented a test for the internal function and checked the behaviour over that internal function.

Could you please review the update when you are suitable? I am happy to hear your feedback.

Kind regards

Asim

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.

LGTM once CI approves I can merge and tag.

@jonahgraham jonahgraham merged commit d479f42 into eclipse-cdt-cloud:main Jan 23, 2025
4 checks passed
jonahgraham added a commit to jonahgraham/cdt-gdb-vscode that referenced this pull request Jan 23, 2025
Includes these changes from the adapter:
- Add supportsEvaluateForHovers
   - eclipse-cdt-cloud/cdt-gdb-adapter#347
- Disassembly address handling improvement
   - eclipse-cdt-cloud/cdt-gdb-adapter#348
@jonahgraham
Copy link
Contributor

@asimgunes published to npm. Please let me know if anything looks amiss.

jonahgraham added a commit to eclipse-cdt-cloud/cdt-gdb-vscode that referenced this pull request Jan 23, 2025
Includes these changes from the adapter:
- Add supportsEvaluateForHovers
   - eclipse-cdt-cloud/cdt-gdb-adapter#347
- Disassembly address handling improvement
   - eclipse-cdt-cloud/cdt-gdb-adapter#348
@asimgunes asimgunes deleted the improvement/disassemble-request-address-handling branch January 28, 2025 14:14
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.

2 participants