Fix crash printing packed record with packed array.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 12 Mar 2009 23:41:16 +0000 (23:41 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 12 Mar 2009 23:41:16 +0000 (23:41 +0000)
commit0056e4d5746a88326596e433a09c13f14db3381b
tree5b334b0a627aed1b673327c60dbd1fad43268f8b
parent8a38181c39557b71cb2b0cc0b3ea7e965cb806ae
    Fix crash printing packed record with packed array.

        * ada-lang.c (ada_modulus_from_name): New function.
        (ada_modulus): In the case where the type length is bigger than
        the size of the type used to hold the bounds, try determining
        the modulus from the type name.
        (ada_value_primitive_packed_val): Fix bug in the computation of
        ntarg causing an out-of-buffer invalid access.
gdb/ChangeLog
gdb/ada-lang.c