2001-02-11 Michael Chastain <chastain@redhat.com>
authorMichael Chastain <mec@google.com>
Wed, 14 Feb 2001 19:54:04 +0000 (19:54 +0000)
committerMichael Chastain <mec@google.com>
Wed, 14 Feb 2001 19:54:04 +0000 (19:54 +0000)
commit99f78f560a6f6c670c802274baea31f846378e08
tree835636a3a0700ef927398ca006234ebf4208d88f
parent51d7ee16bb4178a90f90496738bc8fb731252d75
2001-02-11  Michael Chastain  <chastain@redhat.com>

* gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
Helps the test script figure out which demangler is in use.
(dm_type_foo_ref): Ditto.
(dm_type_int_star): Ditto.
(dm_type_long_star): Ditto.
(dm_type_unsigned_int): Ditto.
(dm_type_void): Ditto.
(dm_type_void_star): Ditto.
* gdb.base/cplusfuncs.exp (probe_demangler): New function.
Probe the gdb demangler and set variables to accommodate
formatting differences.
(info_func_regexp): New function.  Same as info_func, but
matches against a regexp.
(info_func): Match against a literal string.
(print_addr_2): New function.  Match against a literal string,
which can be different from the input to gdb.
(print_addr): Simply call print_addr_2 with the same argument twice.
(test_lookup_operator_functions): Use demangler formatting variables.
Blow away the xfails and workarounds for gnats gdb bug gdb/18.  Sort
the tests in the same order as the C++ class declaration.
(test_paddr_operator_functions): Ditto.
(test_paddr_overloaded_functions): Ditto.
(test_paddr_hairy_functions): Use demangler formatting variables.
Add reference to gdb/19 for related tests.
(do_tests): Call probe_demangler.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.c++/cplusfuncs.cc
gdb/testsuite/gdb.c++/cplusfuncs.exp