| Summary: | Disassembly view not possible to display address size < 32 bits | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Patrick Chuong <pchuong> | ||||
| Component: | cdt-debug-dsf | Assignee: | Anton Leherbauer <aleherb+eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Pawel Piech <pawel.1.piech> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | aleherb+eclipse, pawel.1.piech | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 7.0.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Patrick Chuong
I assume you are using a custom address factory which returns 24 bit addresses? I think changing the condition to != should be OK. I cannot test this, though. There should actually be API to query the address size of a target - bug 225609. (In reply to comment #1) > I assume you are using a custom address factory which returns 24 bit addresses? Yes, I have my own custom address factory. > I think changing the condition to != should be OK. I cannot test this, though. I tested it out by changing the code locally, it works as I would expected. > There should actually be API to query the address size of a target - bug > 225609. Is there any reason the memory service API will help in this case? I am not seeing the benifit for going this route. Maybe I don't understand the purpose of the new memory service API. (In reply to comment #2) > Is there any reason the memory service API will help in this case? I am not > seeing the benifit for going this route. Maybe I don't understand the purpose > of the new memory service API. I just wanted to point out that there should be a more explicit way of getting the address size of the target. Anyway, please attach a patch which works for you. Created attachment 177314 [details]
fix
Thanks for the patch. Committed to HEAD. *** cdt cvs genie on behalf of aleherbau *** Bug 323279 - Disassembly view not possible to display address size < 32 bits Patch from Patrick Chuong (TI) [*] DisassemblyBackendDsf.java 1.10 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyBackendDsf.java?root=Tools_Project&r1=1.9&r2=1.10 Can this fix be also apply to CDT7 service release? (In reply to comment #7) > Can this fix be also apply to CDT7 service release? Ok. This should be safe enough. Committed also to cdt_7_0. *** cdt cvs genie on behalf of aleherbau *** Bug 323279 - Disassembly view not possible to display address size < 32 bits Patch from Patrick Chuong (TI) [*] DisassemblyBackendDsf.java 1.8.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyBackendDsf.java?root=Tools_Project&r1=1.8.2.1&r2=1.8.2.2 |