commit 1128f6fb45483d45668d09e0696f4a590334e0c4 Author: David Blaikie Date: Sat Apr 12 23:27:19 2014 -0700 Cause clang to emit the definition of a type used only by pointer gdb/testsuite/ * gdb.stabs/gdb11479.c: introduce a variable to cause clang to emit the full definition of type required by the test * gdb.stabs/gdb11479.exp: correct a typo in a test message diff --git gdb/testsuite/ChangeLog gdb/testsuite/ChangeLog index 730c116..07ba18e 100644 --- gdb/testsuite/ChangeLog +++ gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2014-04-12 David Blaikie + + * gdb.stabs/gdb11479.c: introduce a variable to cause clang to + emit the full definition of type required by the test + * gdb.stabs/gdb11479.exp: correct a typo in a test message + 2014-04-12 Siva Chandra Reddy Doug Evans diff --git gdb/testsuite/gdb.stabs/gdb11479.c gdb/testsuite/gdb.stabs/gdb11479.c index eb7fcf9..f70930f 100644 --- gdb/testsuite/gdb.stabs/gdb11479.c +++ gdb/testsuite/gdb.stabs/gdb11479.c @@ -55,7 +55,7 @@ struct dummy { enum dummy_enum { enum1, enum2 -}; +} tag_dummy_enum; void * hack (const struct dummy *t, const enum dummy_enum *e) diff --git gdb/testsuite/gdb.stabs/gdb11479.exp gdb/testsuite/gdb.stabs/gdb11479.exp index b9ed238..a2782ac 100644 --- gdb/testsuite/gdb.stabs/gdb11479.exp +++ gdb/testsuite/gdb.stabs/gdb11479.exp @@ -31,13 +31,13 @@ proc do_test {version} { gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \ "Inspect t in test2 $version" # Check that the enum type length has been set to a non-zero value - gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (e) in test2 $version" + gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (*e) in test2 $version" gdb_test "continue" "Breakpoint .* test .*" \ "Stop at first breakpoint $version" gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \ "Inspect t in test $version" # Check that the enum type length has been set to a non-zero value - gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (e) in test $version" + gdb_test "print sizeof (*e)" "= \[1-9\]*" "sizeof (*e) in test $version" } if { [prepare_for_testing $testfile.exp $testfile $testfile.c {debug additional_flags=-gstabs}] == 0 } {