aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/pr9167.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-02 15:13:13 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-02 15:13:13 +0000
commite17476d75f951a9a72818aca1059c624b7b6ead2 (patch)
tree71ceb2a8505e51ced2cced1b29d36e379b1ed07b /gdb/testsuite/gdb.cp/pr9167.exp
parent46fc714c1b4ed78d97708bf570e713d0b9a02e8b (diff)
downloadgdb-e17476d75f951a9a72818aca1059c624b7b6ead2.zip
gdb-e17476d75f951a9a72818aca1059c624b7b6ead2.tar.gz
gdb-e17476d75f951a9a72818aca1059c624b7b6ead2.tar.bz2
gdb/testsuite/
* gdb.cp/m-static.exp: Call get_compiler_info. (static const int initialized nowhere): Call setup_xfail for gcc <= 4.4. * gdb.cp/pr9167.exp (p b): Likewise. * gdb.cp/temargs.exp: Do not set have_pr_45024_fixed for gcc 4.6. (test value of P in inner_m, test type of Z in inner_m): Call setup_xfail for gcc <= 4.5.
Diffstat (limited to 'gdb/testsuite/gdb.cp/pr9167.exp')
-rw-r--r--gdb/testsuite/gdb.cp/pr9167.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/pr9167.exp b/gdb/testsuite/gdb.cp/pr9167.exp
index 4487929..fc8476c 100644
--- a/gdb/testsuite/gdb.cp/pr9167.exp
+++ b/gdb/testsuite/gdb.cp/pr9167.exp
@@ -32,5 +32,12 @@ if ![runto_main] then {
gdb_breakpoint [gdb_get_line_number "marker"]
gdb_continue_to_breakpoint "marker"
+if {[test_compiler_info {gcc-[0-3]-*}]
+ || [test_compiler_info {gcc-4-[0-4]-*}]} {
+ # There was an extra CU-level DW_TAG_variable for DEFAULT_INSTANCE
+ # as DW_AT_declaration with DW_AT_name = nowhere
+ # and DW_AT_MIPS_linkage_name = _ZN9gnu_obj_47nowhereE .
+ setup_xfail *-*-*
+}
gdb_test "p b" "{<A<int, B>> = {<ATB<int>> = {data = 0}, static DEFAULT_INSTANCE = <optimized out>}, <No data fields>}"