| Summary: | Add support for polymorphicly operating over multiple objects describing memory regions | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Daniel Thomas <daniel.thomas> | ||||||||
| Component: | cdt-debug-edc | Assignee: | Ken Ryall <ken.ryall> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | cdtdoug, kirk.beitz | ||||||||
| Version: | 8.0 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=353904 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Daniel Thomas
Created attachment 200713 [details]
Patch to add and use IAddressInterval and HasSize interfaces
Created attachment 200917 [details]
Tests for IAddressInterval and HasSize
These reveal a couple of bugs which will be reported separately.
Created attachment 200927 [details]
Patch to add and use IAddressInterval and HasSize interfaces
Additionally copes with cases where there is no buffer available to provide the size information (which makes the provided tests pass).
this patch seems mostly quite useful. in our local code base, i've refactored this a little further to add AbstractAddressInterval for use by methods, since getLowAddress(), getHighAddress() and hasEmptyRange() is highly similar for several of the implementers. this code has now been nominally tested locally; awaiting final review and final merge to eclipse edc git repository by committer ken ryall. i've also slightly modified the test patch to live in org.eclipse.cdt.debug.edc.tests for now. if/when package org.eclipse.cdt.debug.edc.symbol.tests gets created, there are probably a number of the tests in org.eclipse.cdt.debug.edc.tests that would get moved there as well. |