Community
Participate
Working Groups
Build Identifier: 201006141710 The disassembly view can only show address width that is equals or greater than 32 bits. The minimum number of characters that shows up in the ruler column is 8 + some others. I have a 24 bits target and would expect the ruler column to have an address that has 6 characters, i.e 0xBADF00 The issue is in the DisassemblyBackendDsf.java, line 276. It checks to see if the frame data address has a size that is greater than the callback size. I think it should be != instead of <, than perform the address change. Reproducible: Always
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