Fix struct size computation in jit interface

Richard Henderson rth@redhat.com
Wed Mar 21 23:00:00 GMT 2012


The code is careful to take the target-specific alignment into account,
but not before settling on the size of the structure, and copying data
from the inferior.  Thus this code reads uninitialized data on any
target for which padding actually occurs.  This does not include i386,
which is why I assume the bug wasn't noticed before.

Ok?


r~
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: d-gdb-jit
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20120321/7b282d8f/attachment.ksh>


More information about the Gdb-patches mailing list