diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-12-21 11:23:43 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-12-21 11:23:43 -0500 |
commit | b6304613bf0bb1c188bed30eb3df6e3e154b4196 (patch) | |
tree | 7bac85fd0d40747b29ae49797977820d4d28fbe5 /gdb/testsuite/gdb.cp | |
parent | 35adc03f3787405297259a1706608bdeaab4fda9 (diff) | |
download | gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.zip gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.tar.gz gdb-b6304613bf0bb1c188bed30eb3df6e3e154b4196.tar.bz2 |
Remove references to HP CC/aCC compiler from testsuite
The HP CC/aCC compiler is exclusive to HP-UX, for which support has been
explicitly removed. Therefore, It does not make sense to keep tests
for these compilers' quirks.
gdb/testsuite/ChangeLog:
* gdb.base/break.exp: Remove references to HP CC/aCC compilers.
* gdb.base/call-ar-st.exp: Likewise.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/condbreak.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/hbreak2.exp: Likewise.
* gdb.base/langs.exp: Likewise.
* gdb.base/list.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/ptype.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/signals.exp: Likewise.
* gdb.base/so-impl-ld.exp: Likewise.
* gdb.base/varargs.exp: Likewise.
* gdb.base/volatile.exp: Likewise.
* gdb.base/whatis.exp: Likewise.
* gdb.cp/cplusfuncs.exp: Likewise.
* gdb.cp/inherit.exp: Likewise.
* gdb.cp/local.exp: Likewise.
* gdb.cp/member-ptr.exp: Likewise.
* gdb.cp/method.exp: Likewise.
* gdb.cp/overload.exp: Likewise.
* gdb.cp/templates.exp: Likewise.
* gdb.stabs/weird.exp: Likewise.
* lib/compiler.c: Likewise.
* lib/compiler.cc: Likewise.
* lib/cp-support.exp: Likewise.
* lib/gdb.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/cplusfuncs.exp | 11 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/inherit.exp | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/local.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/member-ptr.exp | 43 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/method.exp | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/overload.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/templates.exp | 7 |
7 files changed, 4 insertions, 74 deletions
diff --git a/gdb/testsuite/gdb.cp/cplusfuncs.exp b/gdb/testsuite/gdb.cp/cplusfuncs.exp index c19a2c5..6f4bc26 100644 --- a/gdb/testsuite/gdb.cp/cplusfuncs.exp +++ b/gdb/testsuite/gdb.cp/cplusfuncs.exp @@ -443,7 +443,6 @@ proc test_lookup_operator_functions {} { proc test_paddr_operator_functions {} { global hex - global hp_aCC_compiler global dm_operator_comma global dm_type_char_star global dm_type_foo_ref @@ -496,13 +495,9 @@ proc test_paddr_operator_functions {} { " = .* $hex <foo::operator new\\(.*\\)(| static)>" gdb_test "print &foo::operator new\[\]" \ " = .* $hex <foo::operator new\\\[\\\]\\(.*\\)(| static)>" - if { !$hp_aCC_compiler } { - print_addr "foo::operator delete($dm_type_void_star)" - print_addr "foo::operator delete[]($dm_type_void_star)" - } else { - gdb_test "print &'foo::operator delete($dm_type_void_star) static'" \ - " = .*(0x\[0-9a-f\]+|) <foo::operator delete.*>" - } + + print_addr "foo::operator delete($dm_type_void_star)" + print_addr "foo::operator delete[]($dm_type_void_star)" print_addr "foo::operator int($dm_type_void)" print_addr "foo::operator $dm_operator_char_star\($dm_type_void)" diff --git a/gdb/testsuite/gdb.cp/inherit.exp b/gdb/testsuite/gdb.cp/inherit.exp index 332f64f..e09e354 100644 --- a/gdb/testsuite/gdb.cp/inherit.exp +++ b/gdb/testsuite/gdb.cp/inherit.exp @@ -420,9 +420,6 @@ proc test_print_mi_classes { } { # incapable of printing the member of an anonymous union. # We test the printing of the member first, and perform the other tests # only if the test succeeds, to avoid the infinite loop. -# -# GDB HEAD 2004-01-27 with hp aCC A.03.45 crashes on the first test. -# -- chastain 2004-01-27 proc test_print_anon_union {} { global gdb_prompt diff --git a/gdb/testsuite/gdb.cp/local.exp b/gdb/testsuite/gdb.cp/local.exp index 32b8f12..a6cabfe 100644 --- a/gdb/testsuite/gdb.cp/local.exp +++ b/gdb/testsuite/gdb.cp/local.exp @@ -224,12 +224,6 @@ gdb_test_multiple "ptype InnerLocal" "ptype InnerLocal" { -re "type = class InnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*char ilc;\[\r\n\t \]*int \\* *ip;\[\r\n\t \]*(InnerLocal::|)NestedInnerLocal nest1;\[\r\n\t \]*InnerLocal *& operator *=\\((main${sep}::|)InnerLocal const *&\\);\[\r\n\t \]*InnerLocal\\((main${sep}::|)InnerLocal const *&\\);\[\r\n\t \]*InnerLocal\\((void|)\\);\[\r\n\t \]*int il_foo\\(unsigned char const *&\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype InnerLocal (pattern 2)" } - -re "type = class InnerLocal \{\r\n\[\t \]*public:\r\n\[\t \]*char ilc;\r\n\[\t \]*int \\*ip;\r\n\[\t \]*InnerLocal::NestedInnerLocal nest1;\r\n\r\n\[\t \]*.int il_foo\\(unsigned char const &\\);\r\n\[\t \]*\}\[\t \]*\\(Local at.*local\\.cc:36\\).*$gdb_prompt $" { - pass "ptype InnerLocal (old HP aCC)" - } - -re "type = class InnerLocal \{\r\n\[\t \]*public:\r\n\[\t \]*char ilc;\r\n\[\t \]*int \\*ip;\r\n\[\t \]*class InnerLocal4::NestedInnerLocal nest1;\r\n\r\n\[\t \]*int il_foo\\(unsigned char const &\\);\r\n\[\t \]*\\(Local at.*local\.cc:\[0-9\]+\\)\r\n\}.*$gdb_prompt $" { - pass "ptype InnerLocal (old HP aCC)" - } -re "type = class InnerLocal \{\[\r\n\t \]*public:\[\r\n\t \]*char ilc;\[\r\n\t \]*int \\* *ip;\[\r\n\t \]*(InnerLocal::|)NestedInnerLocal nest1;\[\r\n\t \]* int il_foo\\(unsigned char const *&\\);\[\r\n\t \]*InnerLocal *& operator *=\\((main${sep}::|)InnerLocal const *&\\);\[\r\n\t \]*InnerLocal\\((main${sep}::|)InnerLocal const *&\\);\[\r\n\t \]*InnerLocal\\((void|)\\);\[\r\n\t \]*\}.*$gdb_prompt $" { pass "ptype InnerLocal (pattern 5)" } diff --git a/gdb/testsuite/gdb.cp/member-ptr.exp b/gdb/testsuite/gdb.cp/member-ptr.exp index 29e051b..dd8aef5 100644 --- a/gdb/testsuite/gdb.cp/member-ptr.exp +++ b/gdb/testsuite/gdb.cp/member-ptr.exp @@ -78,12 +78,6 @@ gdb_test_multiple "print pmi" $name { # gcc HEAD 2004-01-11 05:33:21 -gstabs+ kfail "gdb/NNNN" $name } - -re "$vhn = \\(int ?\\( A::\\*\\)\\) 536870920\r\n$gdb_prompt $" { - # the value is 0x20000008 hex. 0x20000000 is an internal flag. - # Use '|' to add in more values as needed. - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } } # print dereferenced pointer to data member @@ -157,12 +151,6 @@ gdb_test_multiple "print pmi" $name { # gcc HEAD 2004-01-11 05:33:21 -gstabs+ kfail "gdb/NNNN" $name } - -re "$vhn = \\(int ?\\( A::\\*\\)\\) 536870924\r\n$gdb_prompt $" { - # the value is 0x20000008 hex. 0x20000000 is an internal flag. - # Use '|' to add in more values as needed. - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } } # print dereferenced pointer to data member again @@ -413,10 +401,6 @@ gdb_test_multiple "ptype pmf" $name { -re "type = int \\( ?A::\\*\\)\\(A \\*( const)?, int\\)\r\n$gdb_prompt $" { pass $name } - -re "type = int \\( ?A::\\*\\)\\(void\\)\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "type = struct \{.*\}\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ @@ -435,10 +419,6 @@ gdb_test_multiple "print pmf" $name { -re "$vhn = \\(int \\(A::\\*\\)\\(A \\*( const)?, int\\)\\) $hex <A::bar\\(int\\)>\r\n$gdb_prompt $" { pass $name } - -re "$vhn = .*not supported with HP aCC.*\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "$vhn = \{.*\}\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ @@ -457,10 +437,6 @@ gdb_test_multiple "ptype pmf_p" $name { -re "type = int \\( ?A::\\*\\*\\)\\(A \\*( const)?, int\\)\r\n$gdb_prompt $" { pass $name } - -re "type = int \\( ?A::\\*\\*\\)\\(void\\)\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "type = struct \{.*\} \\*\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ @@ -482,10 +458,6 @@ gdb_test_multiple "print pmf_p" $name { -re "$vhn = \\(PMF \\*\\) $hex\r\n$gdb_prompt $" { pass "gdb/NNNN" } - -re "$vhn = \\(int \\( ?A::\\*\\*\\)\\(void\\)\\) $hex\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "$vhn = \\(struct \{.*\} \\*\\) $hex\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 kfail "gdb/NNNN" $name @@ -499,10 +471,6 @@ gdb_test_multiple "print a.*pmf" $name { -re "$vhn = {int \\(A \\*( const)?, int\\)} $hex <A::bar\\(int\\)>\r\n$gdb_prompt $" { pass $name } - -re "Pointers to methods not supported with HP aCC\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "Value can't be converted to integer.\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ @@ -521,10 +489,6 @@ gdb_test_multiple "print a_p->*pmf" $name { -re "$vhn = {int \\(A \\*( const)?, int\\)} $hex <A::bar\\(int\\)>\r\n$gdb_prompt $" { pass $name } - -re "Pointers to methods not supported with HP aCC\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "Value can't be converted to integer.\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ @@ -555,9 +519,6 @@ gdb_test_multiple "set var pmf = &A::foo" $name { # gcc HEAD 2004-01-10 -gstabs+ kfail "gdb/NNNN" $name } - -re "Assignment to pointers to methods not implemented with HP aCC\r\n$gdb_prompt $" { - kfail "gdb/NNNN" $name - } } # dereference the pointer to data member without any object @@ -605,10 +566,6 @@ gdb_test_multiple "print (a.*pmf)(3)" $name { -re "$vhn = 50\r\n$gdb_prompt $" { pass $name } - -re "Not implemented: function invocation through pointer to method with HP aCC\r\n$gdb_prompt $" { - # hpacc A.03.45 - kfail "gdb/NNNN" $name - } -re "Value can't be converted to integer.\r\n$gdb_prompt $" { # gcc 2.95.3 -gdwarf-2 # gcc 2.95.3 -gstabs+ diff --git a/gdb/testsuite/gdb.cp/method.exp b/gdb/testsuite/gdb.cp/method.exp index 67cdcb8..7d1d3e4 100644 --- a/gdb/testsuite/gdb.cp/method.exp +++ b/gdb/testsuite/gdb.cp/method.exp @@ -152,9 +152,6 @@ gdb_test_multiple "ptype A" "ptype A" { -re "type = class A \{\r\n\[ \]*public:\r\n\[ \]*int x;\r\n\[ \]*int y;\r\n\r\n\[ \]*int foo\\(int\\);\r\n\[ \]*int bar\\(int\\) const;\r\n\[ \]*int baz\\(int, char\\) volatile;\r\n\[ \]*int qux\\(int, float\\) (const volatile|volatile const);\r\n\[ \]*A & operator=\\(A const ?&\\);\r\n\[ \]*A\\(A const ?&\\);\r\n\[ \]*A\\((void|)\\);\r\n\}\r\n$gdb_prompt $" { pass "ptype A" } - -re "type = class A \{\r\n\[ \]*public:\r\n\[ \]*int x;\r\n\[ \]*int y;\r\n\r\n\[ \]*int foo\\(int\\);\r\n\[ \]*int bar\\(int\\) const;\r\n\[ \]*int baz\\(int, char\\);\r\n\[ \]*int qux\\(int, float\\) const;\r\n\}\r\n$gdb_prompt $" { - pass "ptype A (HP aCC bug -- volatile not indicated)" - } -re "type = class A \{\r\n\[ \]*public:\r\n\[ \]*int x;\r\n\[ \]*int y;\r\n\r\n\[ \]*int foo\\(int\\);\r\n\[ \]*int bar\\(int\\) const;\r\n\[ \]*int baz\\(int, char\\) volatile;\r\n\[ \]*int qux\\(int, float\\) const volatile;\r\n\}\r\n$gdb_prompt $" { pass "ptype A" } diff --git a/gdb/testsuite/gdb.cp/overload.exp b/gdb/testsuite/gdb.cp/overload.exp index bac6375..13a8ee4 100644 --- a/gdb/testsuite/gdb.cp/overload.exp +++ b/gdb/testsuite/gdb.cp/overload.exp @@ -91,11 +91,6 @@ set re_synth "foo & operator=\\(foo const ?&\\);" gdb_test "print foo_instance1" "\\$\[0-9\]+ = \{ifoo = 111, ccpfoo = 0x0\}" gdb_test_multiple "ptype foo_instance1" "ptype foo_instance1" { - -re "type = $re_class${ws}$re_fields${ws}$re_ctor${ws}$re_dtor${ws}$re_methods$nl\}$nl$gdb_prompt $" { - # gcc 2.95.3 -gdwarf-2 - # TODO: this is not a quirk! - pass "ptype foo_instance1 (HP aCC -- known quirk with ~foo parameter list)" - } -re "type = $re_class${ws}$XX_fields${ws}$re_synth${ws}$re_dtor${ws}$re_ctor${ws}$re_methods$nl\}$nl$gdb_prompt $" { # gcc 2.95.3 -gstabs+, no "const" on "const char *" # TODO: gdb.base/constvar.exp has XFAILed this kind of problem for a diff --git a/gdb/testsuite/gdb.cp/templates.exp b/gdb/testsuite/gdb.cp/templates.exp index 6808062..6b7b848 100644 --- a/gdb/testsuite/gdb.cp/templates.exp +++ b/gdb/testsuite/gdb.cp/templates.exp @@ -116,7 +116,6 @@ proc test_template_breakpoints {} { global gdb_prompt global testfile global srcdir - global hp_aCC_compiler gdb_test_multiple "break T5<int>::T5" "constructor breakpoint" { -re "0. cancel.*\[\r\n\]*.1. all.*\[\r\n\]*.2.*templates.cc:T5<int>::T5\\((T5<int> const|const T5<int>) ?&\\)\[\r\n\]*.3.*templates.cc:T5<int>::T5\\(int\\)\[\r\n\]*> $" { @@ -137,9 +136,6 @@ proc test_template_breakpoints {} { } } -# See CLLbs14792 - if {$hp_aCC_compiler} {setup_xfail hppa*-*-* CLLbs14792} - gdb_test_multiple "break T5<int>::~T5" "destructor_breakpoint" { -re "Breakpoint.*at.* file .*${testfile}.cc, line.*$gdb_prompt $" { @@ -186,7 +182,6 @@ proc test_template_breakpoints {} { proc test_template_calls {} { global gdb_prompt - global hp_aCC_compiler if [target_info exists gdb,cannot_call_functions] { setup_xfail "*-*-*" 2416 @@ -194,7 +189,7 @@ proc test_template_calls {} { return } - if {!$hp_aCC_compiler} {setup_xfail hppa*-*-*} + setup_xfail hppa*-*-* gdb_test_multiple "print t5i.value()" "print t5i.value()" { -re ".* = 2\[\r\n\]*$gdb_prompt $" { pass "print t5i.value()" |