* gdb.base/sizeof.c (main): Call fill_structs. Print value of
authorAndrew Cagney <cagney@redhat.com>
Thu, 21 Feb 2002 01:55:05 +0000 (01:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 21 Feb 2002 01:55:05 +0000 (01:55 +0000)
commitedcc8c754b3bb1e366ea5f5b9d1832625f865e25
tree1d5264a26cc7bad0f2a49ef9a208c8806f0447da
parent73823b989b23582dfa4dc8f20dc5c99f000690df
* gdb.base/sizeof.c (main): Call fill_structs.  Print value of
signed, unsigned and straight char.
(padding_char, padding_short, padding_int, padding_long,
padding_long_long, padding_float, padding_double,
padding_long_double): New global variables.
(fill, fill_structs): New functions.

* gdb.base/sizeof.exp: Check for signed and unsigned char.  Check
for correctly sized writes.  Update copyright.
(get_valueof): New procedure.
(get_sizeof): Call get_valueof.
(check_valueof): New procedure.
(check_padding): New procedure.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sizeof.c
gdb/testsuite/gdb.base/sizeof.exp