Community
Participate
Working Groups
Build Identifier: According to the definition of getByteSize() in IType: /** * Get size of data type in bytes * * @return size in bytes of the effective type (e.g. skipping qualifiers, typedefs, etc.) */ ArrayType should return the size of the array it represents not the size of on element of the array. i.e. int[10] should have a byteSize of 40 not of 4. I have a patch that fixes this behavior and the couple of locations where this incorrect behavior was used. Reproducible: Always
Created attachment 200736 [details] Fixes behaviour so that getByteSize is consistent with API and other implementations
Tests on this behavior are in: https://bugs.eclipse.org/bugs/attachment.cgi?id=200968
(In reply to comment #2) > Tests on this behavior are in: > https://bugs.eclipse.org/bugs/attachment.cgi?id=200968 sorry to make you find these same fixes on your own; our local source base (in the process of being merged to the eclipse edc git repository) contains similar code to the patch you supplied, and passes the tests in the attachment mentioned. the test in the attachment mentioned has been added, though in org.eclipse.cdt.debug.edc.tests rather than in the .symbols package of the original patch, and a merge with the rest is pending/in progress.
Fixed in: http://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/commit/?id=f7c4790c134d0cdc30cdbe8d2a016bf27cd25528