This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gdb.base/call-rt-st.*: Add char bitfield and short bitfield tests
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: ezannoni at redhat dot com, gdb-patches at sources dot redhat dot com, vinschen at redhat dot com
- Date: Sat, 11 Oct 2003 17:26:17 -0400
- Subject: Re: [RFA] gdb.base/call-rt-st.*: Add char bitfield and short bitfield tests
I proofread the patch and found one copy-and-paste glitch:
if ![gdb_skip_stdio_test "print print_bit_flags_short(*flags)"] {
print_struct_call "print_bit_flags(*flags)" \
".*alpha\[ \r\n\]+gamma\[ \r\n\]+epsilon\[ \r\n\]+.\[0-9\]+ = \\{alpha = 1, beta = 0, gamma = 1, delta = 0, epsilon = 1, omega = 0\\}"
}
The second line should be "print_struct_call print_bit_flags_short".
My test bed likes this patch.
Recommended for approval, with this change.
Michael C
===
* gdb.base/call-rt-st.c (struct bit_flags_char_t): New bitfield
type, based on char type.
(struct bit_flags_short_t): New bitfield type, based on short type.
(init_bit_flags_char): New fuction.
(init_bit_flags_short): Ditto.
(print_bit_flags_char): Ditto.
(print_bit_flags_short): Ditto.
(main): Add handling for bit_flags_char_t and bit_flags_short_t.