[patch][rfa]: SID mapper component - wordsize

Dave Brolley brolley@redhat.com
Thu Feb 13 23:58:00 GMT 2003


Hi,

I ran across a problem with the scaling of the upper bound of a mapped 
range when the wordsize feature is used. The specification

[4*1000-1010]

should allow access to the range 4000-4043, however, the upper bound is 
simply being multiplied by the wordsize, resulting in an upper bound of 
4040. If the mapper is accessed using wordsized elements, the problem 
goes unnoticed, since the mapper does not check the ending address of 
the range being accessed. However, if the mapper is accessed one byte at 
a time (as GDB often does), the final 3 bytes are considered unmapped.

Attached is the patch which corrects this. OK to commit?

Dave
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mapper-wordsize.patch.txt
URL: <http://sourceware.org/pipermail/sid/attachments/20030213/f0e85396/attachment.txt>


More information about the Sid mailing list