This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/testsuite] Test printing complex numbers in C
- From: Fernando Nasser <fnasser at redhat dot com>
- To: Michael Elizabeth Chastain <mec at shout dot net>
- Cc: drow at mvista dot com, gdb-patches at sources dot redhat dot com
- Date: Wed, 04 Dec 2002 18:19:51 -0500
- Subject: Re: [RFA/testsuite] Test printing complex numbers in C
- Organization: Red Hat , Inc. - Toronto
- References: <200212031654.gB3GsZL31271@duracef.shout.net>
Thanks Michael. Nice to have you back!
Michael Elizabeth Chastain wrote:> stabs DWARF-2
GCC 2.95 pass fail
GCC 3.x fail pass
Do gcc 2.95.3/dwarf-2 and gcc 3.x/stabs+ have identical output,
or different output?
If they are different output, you can do:
send_gdb "blah"
gdb_expect {
-re "good output" {
pass ...
}
-re "flaky gcc 2.95.3/dwarf-2 output" {
setup_xfail_format "dwarf-2"
fail ...
}
-re "flaky gcc 3.x/stabs+ output" {
setup_xfail_format "stabs+"
fail ...
}
-re ".*" {
fail ...
}
}
You can also dynamically poke at the executable to see what gcc compiled
it. See "probe_demangler" in gdb.c++/cplusfuncs.exp for one way to do it.
Michael C
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9