Blame SOURCES/gdb-rhbz1668635-libiberty-demangle_template-memleak.patch

7cb06c
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
7cb06c
From: Keith Seitz <keiths@redhat.com>
7cb06c
Date: Fri, 8 Mar 2019 14:33:02 -0800
7cb06c
Subject: gdb-rhbz1668635-libiberty-demangle_template-memleak.patch
7cb06c
7cb06c
;; Fix 'libiberty: Memory leak in demangle_template function resulting in a denial of service"
7cb06c
;; Simon Marchi, RH BZ 1668635
7cb06c
7cb06c
gdb: Remove support for old mangling schemes
7cb06c
7cb06c
An upcoming sync with gcc's libiberty [1] will remove support for old
7cb06c
mangling schemes (GNU v2, Lucid, ARM, HP and EDG).  It will remove the
7cb06c
cplus_demangle_opname function, so we need to get rid of its usages in
7cb06c
GDB (it's a GNU v2 specific function).
7cb06c
7cb06c
I think the changes are mostly relatively obvious, some hacks that were
7cb06c
necessary to support overloaded operators with GNU v2 mangling are not
7cb06c
needed anymore.
7cb06c
7cb06c
The change in stabsread.c is perhaps less obvious.  I think we could get
7cb06c
rid of more code in that region that is specific to old mangling
7cb06c
schemes, but I chose to do only the minimal changes required to remove
7cb06c
the cplus_demangle_opname uses.  There is also a detailed comment just
7cb06c
above that explaining how GNU v2 and v3 mangled symbols are handled, I
7cb06c
decided to leave it as-is, since I wasn't sure which part to remove,
7cb06c
change or leave there.
7cb06c
7cb06c
[1] The commit "Remove support for demangling GCC 2.x era mangling
7cb06c
schemes.", specifically.
7cb06c
7cb06c
gdb/ChangeLog:
7cb06c
7cb06c
        * gdbtypes.c (check_stub_method_group): Remove handling of old
7cb06c
        mangling schemes.
7cb06c
        * linespec.c (find_methods): Likewise.
7cb06c
        * stabsread.c (read_member_functions): Likewise.
7cb06c
        * valops.c (search_struct_method): Likewise.
7cb06c
        (value_struct_elt_for_reference): Likewise.
7cb06c
        * NEWS: Mention this change.
7cb06c
7cb06c
gdb/testsuite/ChangeLog:
7cb06c
7cb06c
        * gdb.cp/demangle.exp (test_gnu_style_demangling): Rename to...
7cb06c
        (test_gnuv3_style_demangling): ... this.
7cb06c
        (test_lucid_style_demangling): Remove.
7cb06c
        (test_arm_style_demangling): Remove.
7cb06c
        (test_hp_style_demangling): Remove.
7cb06c
        (do_tests): Remove calls to the above.
7cb06c
7cb06c
gdb/doc/ChangeLog:
7cb06c
7cb06c
        * gdb.texinfo (Print Settings): Remove mention of specific
7cb06c
        demangle-style values, just refer to the in-process help.
7cb06c
7cb06c
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
7cb06c
--- a/gdb/doc/gdb.texinfo
7cb06c
+++ b/gdb/doc/gdb.texinfo
7cb06c
@@ -10390,31 +10390,10 @@ or demangled form.
7cb06c
 @cindex symbol decoding style, C@t{++}
7cb06c
 @kindex set demangle-style
7cb06c
 @item set demangle-style @var{style}
7cb06c
-Choose among several encoding schemes used by different compilers to
7cb06c
-represent C@t{++} names.  The choices for @var{style} are currently:
7cb06c
-
7cb06c
-@table @code
7cb06c
-@item auto
7cb06c
-Allow @value{GDBN} to choose a decoding style by inspecting your program.
7cb06c
-This is the default.
7cb06c
-
7cb06c
-@item gnu
7cb06c
-Decode based on the @sc{gnu} C@t{++} compiler (@code{g++}) encoding algorithm.
7cb06c
-
7cb06c
-@item hp
7cb06c
-Decode based on the HP ANSI C@t{++} (@code{aCC}) encoding algorithm.
7cb06c
-
7cb06c
-@item lucid
7cb06c
-Decode based on the Lucid C@t{++} compiler (@code{lcc}) encoding algorithm.
7cb06c
-
7cb06c
-@item arm
7cb06c
-Decode using the algorithm in the @cite{C@t{++} Annotated Reference Manual}.
7cb06c
-@strong{Warning:} this setting alone is not sufficient to allow
7cb06c
-debugging @code{cfront}-generated executables.  @value{GDBN} would
7cb06c
-require further enhancement to permit that.
7cb06c
-
7cb06c
-@end table
7cb06c
-If you omit @var{style}, you will see a list of possible formats.
7cb06c
+Choose among several encoding schemes used by different compilers to represent
7cb06c
+C@t{++} names.  If you omit @var{style}, you will see a list of possible
7cb06c
+formats.  The default value is @var{auto}, which lets @value{GDBN} choose a
7cb06c
+decoding style by inspecting your program.
7cb06c
 
7cb06c
 @item show demangle-style
7cb06c
 Display the encoding style currently in use for decoding C@t{++} symbols.
7cb06c
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
7cb06c
--- a/gdb/gdbtypes.c
7cb06c
+++ b/gdb/gdbtypes.c
7cb06c
@@ -2779,37 +2779,11 @@ check_stub_method_group (struct type *type, int method_id)
7cb06c
 {
7cb06c
   int len = TYPE_FN_FIELDLIST_LENGTH (type, method_id);
7cb06c
   struct fn_field *f = TYPE_FN_FIELDLIST1 (type, method_id);
7cb06c
-  int j, found_stub = 0;
7cb06c
 
7cb06c
-  for (j = 0; j < len; j++)
7cb06c
-    if (TYPE_FN_FIELD_STUB (f, j))
7cb06c
-      {
7cb06c
-	found_stub = 1;
7cb06c
+  for (int j = 0; j < len; j++)
7cb06c
+    {
7cb06c
+      if (TYPE_FN_FIELD_STUB (f, j))
7cb06c
 	check_stub_method (type, method_id, j);
7cb06c
-      }
7cb06c
-
7cb06c
-  /* GNU v3 methods with incorrect names were corrected when we read
7cb06c
-     in type information, because it was cheaper to do it then.  The
7cb06c
-     only GNU v2 methods with incorrect method names are operators and
7cb06c
-     destructors; destructors were also corrected when we read in type
7cb06c
-     information.
7cb06c
-
7cb06c
-     Therefore the only thing we need to handle here are v2 operator
7cb06c
-     names.  */
7cb06c
-  if (found_stub && !startswith (TYPE_FN_FIELD_PHYSNAME (f, 0), "_Z"))
7cb06c
-    {
7cb06c
-      int ret;
7cb06c
-      char dem_opname[256];
7cb06c
-
7cb06c
-      ret = cplus_demangle_opname (TYPE_FN_FIELDLIST_NAME (type, 
7cb06c
-							   method_id),
7cb06c
-				   dem_opname, DMGL_ANSI);
7cb06c
-      if (!ret)
7cb06c
-	ret = cplus_demangle_opname (TYPE_FN_FIELDLIST_NAME (type, 
7cb06c
-							     method_id),
7cb06c
-				     dem_opname, 0);
7cb06c
-      if (ret)
7cb06c
-	TYPE_FN_FIELDLIST_NAME (type, method_id) = xstrdup (dem_opname);
7cb06c
     }
7cb06c
 }
7cb06c
 
7cb06c
diff --git a/gdb/linespec.c b/gdb/linespec.c
7cb06c
--- a/gdb/linespec.c
7cb06c
+++ b/gdb/linespec.c
7cb06c
@@ -1234,17 +1234,6 @@ find_methods (struct type *t, enum language t_lang, const char *name,
7cb06c
 	   --method_counter)
7cb06c
 	{
7cb06c
 	  const char *method_name = TYPE_FN_FIELDLIST_NAME (t, method_counter);
7cb06c
-	  char dem_opname[64];
7cb06c
-
7cb06c
-	  if (startswith (method_name, "__") ||
7cb06c
-	      startswith (method_name, "op") ||
7cb06c
-	      startswith (method_name, "type"))
7cb06c
-	    {
7cb06c
-	      if (cplus_demangle_opname (method_name, dem_opname, DMGL_ANSI))
7cb06c
-		method_name = dem_opname;
7cb06c
-	      else if (cplus_demangle_opname (method_name, dem_opname, 0))
7cb06c
-		method_name = dem_opname;
7cb06c
-	    }
7cb06c
 
7cb06c
 	  if (symbol_name_compare (method_name, lookup_name, NULL))
7cb06c
 	    {
7cb06c
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
7cb06c
--- a/gdb/stabsread.c
7cb06c
+++ b/gdb/stabsread.c
7cb06c
@@ -2553,7 +2553,6 @@ read_member_functions (struct field_info *fip, const char **pp,
7cb06c
 	}
7cb06c
       else
7cb06c
 	{
7cb06c
-	  int has_stub = 0;
7cb06c
 	  int has_destructor = 0, has_other = 0;
7cb06c
 	  int is_v3 = 0;
7cb06c
 	  struct next_fnfield *tmp_sublist;
7cb06c
@@ -2617,8 +2616,6 @@ read_member_functions (struct field_info *fip, const char **pp,
7cb06c
 	  tmp_sublist = sublist;
7cb06c
 	  while (tmp_sublist != NULL)
7cb06c
 	    {
7cb06c
-	      if (tmp_sublist->fn_field.is_stub)
7cb06c
-		has_stub = 1;
7cb06c
 	      if (tmp_sublist->fn_field.physname[0] == '_'
7cb06c
 		  && tmp_sublist->fn_field.physname[1] == 'Z')
7cb06c
 		is_v3 = 1;
7cb06c
@@ -2705,23 +2702,6 @@ read_member_functions (struct field_info *fip, const char **pp,
7cb06c
 			  "~", main_fn_name, (char *)NULL);
7cb06c
 	      xfree (main_fn_name);
7cb06c
 	    }
7cb06c
-	  else if (!has_stub)
7cb06c
-	    {
7cb06c
-	      char dem_opname[256];
7cb06c
-	      int ret;
7cb06c
-
7cb06c
-	      ret = cplus_demangle_opname (new_fnlist->fn_fieldlist.name,
7cb06c
-					      dem_opname, DMGL_ANSI);
7cb06c
-	      if (!ret)
7cb06c
-		ret = cplus_demangle_opname (new_fnlist->fn_fieldlist.name,
7cb06c
-					     dem_opname, 0);
7cb06c
-	      if (ret)
7cb06c
-		new_fnlist->fn_fieldlist.name
7cb06c
-		  = ((const char *)
7cb06c
-		     obstack_copy0 (&objfile->objfile_obstack, dem_opname,
7cb06c
-				    strlen (dem_opname)));
7cb06c
-	      xfree (main_fn_name);
7cb06c
-	    }
7cb06c
 
7cb06c
 	  new_fnlist->fn_fieldlist.fn_fields
7cb06c
 	    = OBSTACK_CALLOC (&objfile->objfile_obstack, length, fn_field);
7cb06c
diff --git a/gdb/testsuite/gdb.cp/demangle.exp b/gdb/testsuite/gdb.cp/demangle.exp
7cb06c
--- a/gdb/testsuite/gdb.cp/demangle.exp
7cb06c
+++ b/gdb/testsuite/gdb.cp/demangle.exp
7cb06c
@@ -110,419 +110,13 @@ proc test_demangling_exact {test result} {
7cb06c
     test_demangling_core gdb_test_exact $test $result
7cb06c
 }
7cb06c
 
7cb06c
-
7cb06c
-
7cb06c
 #
7cb06c
-#  Test gnu style name demangling
7cb06c
+#  Test gnu-v3 style name demangling
7cb06c
 #
7cb06c
 
7cb06c
-proc test_gnu_style_demangling {} {
7cb06c
+proc test_gnuv3_style_demangling {} {
7cb06c
     global gdb_prompt
7cb06c
 
7cb06c
-    test_demangling "gnu: Abort__FP6EditoriPCc" \
7cb06c
-	"Abort\[(\]+Editor \[*\]+, int, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: AddAlignment__9ivTSolverUiP12ivInteractorP7ivTGlue" "ivTSolver::AddAlignment(unsigned int, ivInteractor *, ivTGlue *)"
7cb06c
-    test_demangling "gnu: Append__15NameChooserViewPCc" \
7cb06c
-	"NameChooserView::Append\[(\]+(const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: ArrowheadIntersects__9ArrowLineP9ArrowheadR6BoxObjP7Graphic" "ArrowLine::ArrowheadIntersects(Arrowhead *, BoxObj &, Graphic *)"
7cb06c
-    test_demangling_exact "gnu: AtEnd__13ivRubberGroup" "ivRubberGroup::AtEnd(void)"
7cb06c
-    test_demangling_exact "gnu: BgFilter__9ivTSolverP12ivInteractor" "ivTSolver::BgFilter(ivInteractor *)"
7cb06c
-    test_demangling "gnu: BitPatterntoa__FRC10BitPatternccc" \
7cb06c
-	"BitPatterntoa\[(\]+(const BitPattern|BitPattern const) &, char, char, char\[)\]+"
7cb06c
-    test_demangling_exact "gnu: Check__6UArrayi" "UArray::Check(int)"
7cb06c
-    test_demangling_exact "gnu: CoreConstDecls__8TextCodeR7ostream" "TextCode::CoreConstDecls(ostream &)"
7cb06c
-    test_demangling_exact "gnu: Detach__8StateVarP12StateVarView" "StateVar::Detach(StateVarView *)"
7cb06c
-    test_demangling_exact "gnu: Done__9ComponentG8Iterator" "Component::Done(Iterator)"
7cb06c
-    test_demangling "gnu: DrawDestinationTransformedImage__FP7_XImageiiT0iiUlUiiiUiUlUlP4_XGCRC13ivTransformeriiii" \
7cb06c
-	"DrawDestinationTransformedImage\[(\]+_XImage \[*\]+, int, int, _XImage \[*\]+, int, int, unsigned long, unsigned int, int, int, unsigned int, unsigned long, unsigned long, _XGC \[*\]+, (const ivTransformer|ivTransformer const) &, int, int, int, int\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "gnu: Edit__12StringEditorPCcii" \
7cb06c
-	"StringEditor::Edit\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: Effect__11RelateManipR7ivEvent" "RelateManip::Effect(ivEvent &)"
7cb06c
-    test_demangling "gnu: FilterName__FPCc" \
7cb06c
-	"FilterName\[(\]+(const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling "gnu: Filter__6PSTextPCci" \
7cb06c
-	"PSText::Filter\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling "gnu: FindColor__7CatalogPCciii" \
7cb06c
-	"Catalog::FindColor\[(\]+(const char|char const) \[*\]+, int, int, int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: FindFixed__FRP4CNetP4CNet" "FindFixed(CNet *&, CNet *)"
7cb06c
-    test_demangling "gnu: FindFont__7CatalogPCcN21" \
7cb06c
-	"Catalog::FindFont\[(\]+(const char|char const) \[*\]+, (const char|char const) \[*\]+, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: Fix48_abort__FR8twolongs" "Fix48_abort(twolongs &)"
7cb06c
-    test_demangling_exact "gnu: GetBarInfo__15iv2_6_VScrollerP13ivPerspectiveRiT2" "iv2_6_VScroller::GetBarInfo(ivPerspective *, int &, int &)"
7cb06c
-    test_demangling_exact "gnu: GetBgColor__C9ivPainter" "ivPainter::GetBgColor(void) const"
7cb06c
-
7cb06c
-    test_demangling "gnu: Iisdouble__FPC6IntRep" \
7cb06c
-	"Iisdouble\[(\]+(const IntRep|IntRep const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: InsertBody__15H_PullrightMenuii" "H_PullrightMenu::InsertBody(int, int)"
7cb06c
-    test_demangling_exact "gnu: InsertCharacter__9TextManipc" "TextManip::InsertCharacter(char)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: InsertToplevel__7ivWorldP12ivInteractorT1" "ivWorld::InsertToplevel(ivInteractor *, ivInteractor *)"
7cb06c
-    test_demangling_exact "gnu: InsertToplevel__7ivWorldP12ivInteractorT1iiUi" "ivWorld::InsertToplevel(ivInteractor *, ivInteractor *, int, int, unsigned int)"
7cb06c
-    test_demangling "gnu: IsADirectory__FPCcR4stat" \
7cb06c
-	"IsADirectory\[(\]+(const char|char const) \[*\]+, stat &\[)\]+"
7cb06c
-    test_demangling_exact "gnu: IsAGroup__FP11GraphicViewP11GraphicComp" "IsAGroup(GraphicView *, GraphicComp *)"
7cb06c
-    test_demangling_exact "gnu: IsA__10ButtonCodeUl" "ButtonCode::IsA(unsigned long)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: ReadName__FR7istreamPc" "ReadName(istream &, char *)"
7cb06c
-    test_demangling_exact "gnu: Redraw__13StringBrowseriiii" "StringBrowser::Redraw(int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: Rotate__13ivTransformerf" "ivTransformer::Rotate(float)"
7cb06c
-    test_demangling_exact "gnu: Rotated__C13ivTransformerf" "ivTransformer::Rotated(float) const"
7cb06c
-    test_demangling_exact "gnu: Round__Ff" "Round(float)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: SetExport__16MemberSharedNameUi" "MemberSharedName::SetExport(unsigned int)"
7cb06c
-    test_demangling_exact "gnu: Set__14ivControlState13ControlStatusUi" "ivControlState::Set(ControlStatus, unsigned int)"
7cb06c
-    test_demangling_exact "gnu: Set__5DFacePcii" "DFace::Set(char *, int, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: VConvert__9ivTSolverP12ivInteractorRP8TElementT2" "ivTSolver::VConvert(ivInteractor *, TElement *&, TElement *&)"
7cb06c
-    test_demangling_exact "gnu: VConvert__9ivTSolverP7ivTGlueRP8TElement" "ivTSolver::VConvert(ivTGlue *, TElement *&)"
7cb06c
-    test_demangling_exact "gnu: VOrder__9ivTSolverUiRP12ivInteractorT2" "ivTSolver::VOrder(unsigned int, ivInteractor *&, ivInteractor *&)"
7cb06c
-    test_demangling "gnu: Valid__7CatalogPCcRP4Tool" \
7cb06c
-	"Catalog::Valid\[(\]+(const char|char const) \[*\]+, Tool \[*\]+&\[)\]+"
7cb06c
-    test_demangling_exact "gnu: _10PageButton\$__both" "PageButton::__both"
7cb06c
-    test_demangling_exact "gnu: _3RNG\$singleMantissa" "RNG::singleMantissa"
7cb06c
-    test_demangling_exact "gnu: _5IComp\$_release" "IComp::_release"
7cb06c
-    test_demangling_exact "gnu: _\$_10BitmapComp" "BitmapComp::~BitmapComp(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: _\$_9__io_defs" "__io_defs::~__io_defs(void)"
7cb06c
-    test_demangling_exact "gnu: _\$_Q23foo3bar" "foo::bar::~bar(void)"
7cb06c
-    test_demangling_exact "gnu: _\$_Q33foo3bar4bell" "foo::bar::bell::~bell(void)"
7cb06c
-    test_demangling_exact "gnu: __10ivTelltaleiP7ivGlyph" "ivTelltale::ivTelltale(int, ivGlyph *)"
7cb06c
-    test_demangling_exact "gnu: __10ivViewportiP12ivInteractorUi" "ivViewport::ivViewport(int, ivInteractor *, unsigned int)"
7cb06c
-    test_demangling_exact "gnu: __10ostrstream" "ostrstream::ostrstream(void)"
7cb06c
-    test_demangling_exact "gnu: __10ostrstreamPcii" "ostrstream::ostrstream(char *, int, int)"
7cb06c
-    test_demangling "gnu: __11BasicDialogiPCcP13ivButtonStateN22Ui" \
7cb06c
-	"BasicDialog::BasicDialog\[(\]+int, (const char|char const) \[*\]+, ivButtonState \[*\]+, (const char|char const) \[*\]+, (const char|char const) \[*\]+, unsigned int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __11BitmapTablei" "BitmapTable::BitmapTable(int)"
7cb06c
-    test_demangling_exact "gnu: __12ViewportCodeP12ViewportComp" "ViewportCode::ViewportCode(ViewportComp *)"
7cb06c
-    test_demangling "gnu: __12iv2_6_BorderiPCci" \
7cb06c
-	"iv2_6_Border::iv2_6_Border\[(\]+int, (const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __12iv2_6_Borderii" "iv2_6_Border::iv2_6_Border(int, int)"
7cb06c
-    test_demangling "gnu: __12ivBackgroundiP7ivGlyphPC7ivColor" \
7cb06c
-	"ivBackground::ivBackground\[(\]+int, ivGlyph \[*\]+, (const ivColor|ivColor const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __12ivBreak_Listl" "ivBreak_List::ivBreak_List(long)"
7cb06c
-    test_demangling "gnu: __14TextInteractoriPCcUi" \
7cb06c
-	"TextInteractor::TextInteractor\[(\]+int, (const char|char const) \[*\]+, unsigned int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __14iv2_6_MenuItemiP12ivInteractor" "iv2_6_MenuItem::iv2_6_MenuItem(int, ivInteractor *)"
7cb06c
-    test_demangling "gnu: __14iv2_6_MenuItemiPCcP12ivInteractor" \
7cb06c
-	"iv2_6_MenuItem::iv2_6_MenuItem\[(\]+int, (const char|char const) \[*\]+, ivInteractor \[*\]+\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __20DisplayList_IteratorR11DisplayList" "DisplayList_Iterator::DisplayList_Iterator(DisplayList &)"
7cb06c
-    test_demangling_exact "gnu: __3fooRT0" "foo::foo(foo &)"
7cb06c
-    test_demangling_exact "gnu: __3fooiN31" "foo::foo(int, int, int, int)"
7cb06c
-    test_demangling "gnu: __3fooiPCc" \
7cb06c
-	"foo::foo\[(\]+int, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __3fooiRT0iT2iT2" "foo::foo(int, foo &, int, foo &, int, foo &)"
7cb06c
-    test_demangling "gnu: __6GetOptiPPcPCc" \
7cb06c
-	"GetOpt::GetOpt\[(\]+int, char \[*\]+\[*\]+, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __6KeyMapPT0" "KeyMap::KeyMap(KeyMap *)"
7cb06c
-    test_demangling "gnu: __7ivWorldPCcRiPPcPC12ivOptionDescPC14ivPropertyData" \
7cb06c
-	"ivWorld::ivWorld\[(\]+(const char|char const) \[*\]+, int &, char \[*\]+\[*\]+, (const ivOptionDesc|ivOptionDesc const) \[*\]+, (const ivPropertyData|ivPropertyData const) \[*\]+\[)\]+"
7cb06c
-    test_demangling "gnu: __7procbufPCci" \
7cb06c
-	"procbuf::procbuf\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __8ArrowCmdP6EditorUiUi" "ArrowCmd::ArrowCmd(Editor *, unsigned int, unsigned int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __9F_EllipseiiiiP7Graphic" "F_Ellipse::F_Ellipse(int, int, int, int, Graphic *)"
7cb06c
-    test_demangling_exact "gnu: __9FrameDataP9FrameCompi" "FrameData::FrameData(FrameComp *, int)"
7cb06c
-    test_demangling_exact "gnu: __9HVGraphicP9CanvasVarP7Graphic" "HVGraphic::HVGraphic(CanvasVar *, Graphic *)"
7cb06c
-    test_demangling_exact "gnu: __Q23foo3bar" "foo::bar::bar(void)"
7cb06c
-    test_demangling_exact "gnu: __Q33foo3bar4bell" "foo::bar::bell::bell(void)"
7cb06c
-    test_demangling_exact "gnu: __aa__3fooRT0" "foo::operator&&(foo &)"
7cb06c
-    test_demangling_exact "gnu: __aad__3fooRT0" "foo::operator&=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ad__3fooRT0" "foo::operator&(foo &)"
7cb06c
-    test_demangling_exact "gnu: __adv__3fooRT0" "foo::operator/=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __aer__3fooRT0" "foo::operator^=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __als__3fooRT0" "foo::operator<<=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __amd__3fooRT0" "foo::operator%=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ami__3fooRT0" "foo::operator-=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __aml__3FixRT0" "Fix::operator*=(Fix &)"
7cb06c
-    test_demangling_exact "gnu: __aml__5Fix16i" "Fix16::operator*=(int)"
7cb06c
-    test_demangling_exact "gnu: __aml__5Fix32RT0" "Fix32::operator*=(Fix32 &)"
7cb06c
-    test_demangling_exact "gnu: __aor__3fooRT0" "foo::operator|=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __apl__3fooRT0" "foo::operator+=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ars__3fooRT0" "foo::operator>>=(foo &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __as__3fooRT0" "foo::operator=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __cl__3fooRT0" "foo::operator()(foo &)"
7cb06c
-    test_demangling_exact "gnu: __cl__6Normal" "Normal::operator()(void)"
7cb06c
-    test_demangling_exact "gnu: __cl__6Stringii" "String::operator()(int, int)"
7cb06c
-    test_demangling_exact "gnu: __cm__3fooRT0" "foo::operator, (foo &)"
7cb06c
-    test_demangling_exact "gnu: __co__3foo" "foo::operator~(void)"
7cb06c
-    test_demangling_exact "gnu: __dl__3fooPv" "foo::operator delete(void *)"
7cb06c
-    test_demangling_exact "gnu: __dv__3fooRT0" "foo::operator/(foo &)"
7cb06c
-    test_demangling_exact "gnu: __eq__3fooRT0" "foo::operator==(foo &)"
7cb06c
-    test_demangling_exact "gnu: __er__3fooRT0" "foo::operator^(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ge__3fooRT0" "foo::operator>=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __gt__3fooRT0" "foo::operator>(foo &)"
7cb06c
-    test_demangling_exact "gnu: __le__3fooRT0" "foo::operator<=(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ls__3fooRT0" "foo::operator<<(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ls__FR7ostreamPFR3ios_R3ios" "operator<<(ostream &, ios &(*)(ios &))"
7cb06c
-    test_demangling_exact "gnu: __ls__FR7ostreamR3Fix" "operator<<(ostream &, Fix &)"
7cb06c
-    test_demangling_exact "gnu: __lt__3fooRT0" "foo::operator<(foo &)"
7cb06c
-    test_demangling_exact "gnu: __md__3fooRT0" "foo::operator%(foo &)"
7cb06c
-    test_demangling_exact "gnu: __mi__3fooRT0" "foo::operator-(foo &)"
7cb06c
-    test_demangling_exact "gnu: __ml__3fooRT0" "foo::operator*(foo &)"
7cb06c
-    test_demangling_exact "gnu: __mm__3fooi" "foo::operator--(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __ne__3fooRT0" "foo::operator!=(foo &)"
7cb06c
-    test_demangling "gnu: __ne__FRC7ComplexT0" \
7cb06c
-	"operator!=\[(\]+(const Complex|Complex const) &, (const Complex|Complex const) &\[)\]+"
7cb06c
-    test_demangling "gnu: __ne__FRC7Complexd" \
7cb06c
-	"operator!=\[(\]+(const Complex|Complex const) &, double\[)\]+"
7cb06c
-    test_demangling "gnu: __ne__FRC9SubStringRC6String" \
7cb06c
-	"operator!=\[(\]+(const SubString|SubString const) &, (const String|String const) &\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __nt__3foo" "foo::operator!(void)"
7cb06c
-    test_demangling_exact "gnu: __nw__3fooi" "foo::operator new(int)"
7cb06c
-    test_demangling_exact "gnu: __oo__3fooRT0" "foo::operator||(foo &)"
7cb06c
-    test_demangling_exact "gnu: __opPc__3foo" "foo::operator char *(void)"
7cb06c
-    test_demangling_exact "gnu: __opi__3foo" "foo::operator int(void)"
7cb06c
-    test_demangling_exact "gnu: __or__3fooRT0" "foo::operator|(foo &)"
7cb06c
-    test_demangling_exact "gnu: __pl__3fooRT0" "foo::operator+(foo &)"
7cb06c
-    test_demangling_exact "gnu: __pp__3fooi" "foo::operator++(int)"
7cb06c
-    test_demangling_exact "gnu: __rf__3foo" "foo::operator->(void)"
7cb06c
-    test_demangling_exact "gnu: __rm__3fooRT0" "foo::operator->*(foo &)"
7cb06c
-    test_demangling_exact "gnu: __rs__3fooRT0" "foo::operator>>(foo &)"
7cb06c
-    test_demangling "gnu: __vc__3fooRT0" "foo::operator\\\[\\\]\\(foo &\\)"
7cb06c
-    test_demangling "gnu: _gsub__6StringRC5RegexPCci" \
7cb06c
-	"String::_gsub\[(\]+(const Regex|Regex const) &, (const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling_exact "gnu: _new_Fix__FUs" "_new_Fix(unsigned short)"
7cb06c
-
7cb06c
-    # gcc 2.4.5 (and earlier) style virtual tables.  We want to continue to
7cb06c
-    # correctly demangle these even if newer compilers use a different form.
7cb06c
-    test_demangling_exact "gnu: _vt.foo" "foo virtual table"
7cb06c
-    test_demangling_exact "gnu: _vt.foo.bar" "foo::bar virtual table"
7cb06c
-    test_demangling_exact "gnu: _vt\$foo" "foo virtual table"
7cb06c
-    test_demangling_exact "gnu: _vt\$foo\$bar" "foo::bar virtual table"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: append__7ivGlyphPT0" "ivGlyph::append(ivGlyph *)"
7cb06c
-    test_demangling "gnu: arg__FRC7Complex" \
7cb06c
-	"arg\[(\]+(const Complex|Complex const) &\[)\]+"
7cb06c
-    test_demangling_exact "gnu: clearok__FP7_win_sti" "clearok(_win_st *, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: complexfunc2__FPFPc_i" "complexfunc2(int (*)(char *))"
7cb06c
-    test_demangling_exact "gnu: complexfunc3__FPFPFPl_s_i" "complexfunc3(int (*)(short (*)(long *)))"
7cb06c
-    test_demangling_exact "gnu: complexfunc4__FPFPFPc_s_i" "complexfunc4(int (*)(short (*)(char *)))"
7cb06c
-    test_demangling_exact "gnu: complexfunc5__FPFPc_PFl_i" "complexfunc5(int (*(*)(char *))(long))"
7cb06c
-    test_demangling_exact "gnu: complexfunc6__FPFPi_PFl_i" "complexfunc6(int (*(*)(int *))(long))"
7cb06c
-    test_demangling_exact "gnu: complexfunc7__FPFPFPc_i_PFl_i" "complexfunc7(int (*(*)(int (*)(char *)))(long))"
7cb06c
-    test_demangling "gnu: contains__C9BitStringRC10BitPattern" \
7cb06c
-	"BitString::contains\[(\]+(const BitPattern|BitPattern const) &\[)\]+ const"
7cb06c
-    test_demangling "gnu: contains__C9BitStringRC12BitSubStringi" \
7cb06c
-	"BitString::contains\[(\]+(const BitSubString|BitSubString const) &, int\[)\]+ const"
7cb06c
-    test_demangling "gnu: contains__C9BitStringRT0" \
7cb06c
-	"BitString::contains\[(\]+(const BitString|BitString const) &\[)\]+ const"
7cb06c
-    test_demangling "gnu: div__FPC6IntRepT0P6IntRep" \
7cb06c
-	"div\[(\]+(const IntRep|IntRep const) \[*\]+, (const IntRep|IntRep const) \[*\]+, IntRep \[*\]+\[)\]+"
7cb06c
-    test_demangling "gnu: div__FPC6IntReplP6IntRep" \
7cb06c
-	"div\[(\]+(const IntRep|IntRep const) \[*\]+, long, IntRep \[*\]+\[)\]+"
7cb06c
-    test_demangling "gnu: div__FRC8RationalT0R8Rational" \
7cb06c
-	"div\[(\]+(const Rational|Rational const) &, (const Rational|Rational const) &, Rational &\[)\]+"
7cb06c
-    test_demangling "gnu: divide__FRC7IntegerT0R7IntegerT2" \
7cb06c
-	"divide\[(\]+(const Integer|Integer const) &, (const Integer|Integer const) &, Integer &, Integer &\[)\]+"
7cb06c
-    test_demangling "gnu: divide__FRC7IntegerlR7IntegerRl" \
7cb06c
-	"divide\[(\]+(const Integer|Integer const) &, long, Integer &, long &\[)\]+"
7cb06c
-    test_demangling "gnu: enable__14DocumentViewerPCcUi" \
7cb06c
-	"DocumentViewer::enable\[(\]+(const char|char const) \[*\]+, unsigned int\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: foo__FiN30" "foo(int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: foo__FiR3fooiT1iT1" "foo(int, foo &, int, foo &, int, foo &)"
7cb06c
-    test_demangling_exact "gnu: foo___3barl" "bar::foo_(long)"
7cb06c
-    test_demangling_exact "gnu: insert__15ivClippingStacklRP8_XRegion" "ivClippingStack::insert(long, _XRegion *&)"
7cb06c
-    test_demangling_exact "gnu: insert__16ChooserInfo_ListlR11ChooserInfo" "ChooserInfo_List::insert(long, ChooserInfo &)"
7cb06c
-    test_demangling_exact "gnu: insert__17FontFamilyRepListlRP15ivFontFamilyRep" "FontFamilyRepList::insert(long, ivFontFamilyRep *&)"
7cb06c
-    test_demangling_exact "gnu: leaveok__FP7_win_stc" "leaveok(_win_st *, char)"
7cb06c
-    test_demangling_exact "gnu: left_mover__C7ivMFKitP12ivAdjustableP7ivStyle" "ivMFKit::left_mover(ivAdjustable *, ivStyle *) const"
7cb06c
-    test_demangling "gnu: matches__C9BitStringRC10BitPatterni" \
7cb06c
-	"BitString::matches\[(\]+(const BitPattern|BitPattern const) &, int\[)\]+ const"
7cb06c
-    test_demangling "gnu: matches__C9SubStringRC5Regex" \
7cb06c
-	"SubString::matches\[(\]+(const Regex|Regex const) &\[)\]+ const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: overload1arg__FSc" "overload1arg(signed char)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__FUc" "overload1arg(unsigned char)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__FUi" "overload1arg(unsigned int)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__FUl" "overload1arg(unsigned long)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__FUs" "overload1arg(unsigned short)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fc" "overload1arg(char)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fd" "overload1arg(double)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Ff" "overload1arg(float)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fi" "overload1arg(int)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fl" "overload1arg(long)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fs" "overload1arg(short)"
7cb06c
-    test_demangling_exact "gnu: overload1arg__Fv" "overload1arg(void)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fi" "overloadargs(int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fii" "overloadargs(int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiii" "overloadargs(int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiii" "overloadargs(int, int, int, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiii" "overloadargs(int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiii" "overloadargs(int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiiii" "overloadargs(int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiiiii" "overloadargs(int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiiiiii" "overloadargs(int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiiiiiii" "overloadargs(int, int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "gnu: overloadargs__Fiiiiiiiiiii" "overloadargs(int, int, int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling "gnu: pick__13ivCompositionP8ivCanvasRC12ivAllocationiR5ivHit" \
7cb06c
-	"ivComposition::pick\[(\]+ivCanvas \[*\]+, (const ivAllocation|ivAllocation const) &, int, ivHit &\[)\]+"
7cb06c
-    test_demangling "gnu: pointer__C11ivHScrollerRC7ivEventRC12ivAllocation" \
7cb06c
-	"ivHScroller::pointer\[(\]+(const ivEvent|ivEvent const) &, (const ivAllocation|ivAllocation const) &\[)\]+ const"
7cb06c
-    test_demangling_exact "gnu: poke__8ivRasterUlUlffff" "ivRaster::poke(unsigned long, unsigned long, float, float, float, float)"
7cb06c
-    test_demangling_exact "gnu: polar__Fdd" "polar(double, double)"
7cb06c
-    test_demangling "gnu: read__10osStdInputRPCc" \
7cb06c
-	"osStdInput::read\[(\]+(const char|char const) \[*\]+&\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: scale__13ivTransformerff" "ivTransformer::scale(float, float)"
7cb06c
-    test_demangling "gnu: scanw__12CursesWindowPCce" \
7cb06c
-	"CursesWindow::scanw\[(\]+(const char|char const) \[*\]+,...\[)\]+"
7cb06c
-    test_demangling "gnu: scmp__FPCcT0" \
7cb06c
-	"scmp\[(\]+(const char|char const) \[*\]+, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: sgetn__7filebufPci" "filebuf::sgetn(char *, int)"
7cb06c
-    test_demangling_exact "gnu: shift__FP5_FrepiT0" "shift(_Frep *, int, _Frep *)"
7cb06c
-    test_demangling_exact "gnu: test__C6BitSeti" "BitSet::test(int) const"
7cb06c
-    test_demangling_exact "gnu: test__C6BitSetii" "BitSet::test(int, int) const"
7cb06c
-    test_demangling "gnu: testbit__FRC7Integerl" \
7cb06c
-	"testbit\[(\]+(const Integer|Integer const) &, long\[)\]+"
7cb06c
-    test_demangling_exact "gnu: text_source__8Documentl" "Document::text_source(long)"
7cb06c
-    test_demangling_exact "gnu: variance__6Erlangd" "Erlang::variance(double)"
7cb06c
-    test_demangling "gnu: vform__8iostreamPCcPc" \
7cb06c
-	"iostream::vform\[(\]+(const char|char const) \[*\]+, char \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: view__14DocumentViewerP8ItemViewP11TabularItem" "DocumentViewer::view(ItemView *, TabularItem *)"
7cb06c
-    test_demangling_exact "gnu: xy_extents__11ivExtensionffff" "ivExtension::xy_extents(float, float, float, float)"
7cb06c
-    test_demangling_exact "gnu: zero__8osMemoryPvUi" "osMemory::zero(void *, unsigned int)"
7cb06c
-    test_demangling_exact "gnu: _2T4\$N" "T4::N"
7cb06c
-    test_demangling_exact "gnu: _Q22T42t1\$N" "T4::t1::N"
7cb06c
-    test_demangling_exact "gnu: get__2T1" "T1::get(void)"
7cb06c
-    test_demangling_exact "gnu: get__Q22T11a" "T1::a::get(void)"
7cb06c
-    test_demangling_exact "gnu: get__Q32T11a1b" "T1::a::b::get(void)"
7cb06c
-    test_demangling_exact "gnu: get__Q42T11a1b1c" "T1::a::b::c::get(void)"
7cb06c
-    test_demangling_exact "gnu: get__Q52T11a1b1c1d" "T1::a::b::c::d::get(void)"
7cb06c
-    test_demangling_exact "gnu: put__2T1i" "T1::put(int)"
7cb06c
-    test_demangling_exact "gnu: put__Q22T11ai" "T1::a::put(int)"
7cb06c
-    test_demangling_exact "gnu: put__Q32T11a1bi" "T1::a::b::put(int)"
7cb06c
-    test_demangling_exact "gnu: put__Q42T11a1b1ci" "T1::a::b::c::put(int)"
7cb06c
-    test_demangling_exact "gnu: put__Q52T11a1b1c1di" "T1::a::b::c::d::put(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: bar__3fooPv"       "foo::bar(void *)"
7cb06c
-    test_demangling "gnu: bar__3fooPCv" \
7cb06c
-	"foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "gnu: bar__C3fooPv"      "foo::bar(void *) const"
7cb06c
-    test_demangling "gnu: bar__C3fooPCv" \
7cb06c
-	"foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+ const"
7cb06c
-    test_demangling_exact "gnu: __eq__3fooRT0"     "foo::operator==(foo &)"
7cb06c
-    test_demangling "gnu: __eq__3fooRC3foo" \
7cb06c
-	 "foo::operator==\[(\]+(const foo|foo const) &\[)\]+"
7cb06c
-    test_demangling_exact "gnu: __eq__C3fooR3foo"  "foo::operator==(foo &) const"
7cb06c
-    test_demangling "gnu: __eq__C3fooRT0" \
7cb06c
-	   "foo::operator==\[(\]+(const foo|foo const) &\[)\]+ const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: elem__t6vector1Zdi" "vector<double>::elem(int)"
7cb06c
-    test_demangling_exact "gnu: elem__t6vector1Zii" "vector<int>::elem(int)"
7cb06c
-    test_demangling_exact "gnu: __t6vector1Zdi"     "vector<double>::vector(int)"
7cb06c
-    test_demangling_exact "gnu: __t6vector1Zii"     "vector<int>::vector(int)"
7cb06c
-    test_demangling_exact "gnu: _\$_t6vector1Zdi"    "vector<double>::~vector(int)"
7cb06c
-    test_demangling_exact "gnu: _\$_t6vector1Zii"    "vector<int>::~vector(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __nw__t2T11ZcUi" "T1<char>::operator new(unsigned int)"
7cb06c
-    test_demangling_exact "gnu: __nw__t2T11Z1tUi" "T1<t>::operator new(unsigned int)"
7cb06c
-    test_demangling_exact "gnu: __dl__t2T11ZcPv" "T1<char>::operator delete(void *)"
7cb06c
-    test_demangling_exact "gnu: __dl__t2T11Z1tPv" "T1<t>::operator delete(void *)"
7cb06c
-    test_demangling_exact "gnu: __t2T11Zci" "T1<char>::T1(int)"
7cb06c
-    test_demangling_exact "gnu: __t2T11Zc" "T1<char>::T1(void)"
7cb06c
-    test_demangling_exact "gnu: __t2T11Z1ti" "T1<t>::T1(int)"
7cb06c
-    test_demangling_exact "gnu: __t2T11Z1t" "T1<t>::T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __Q2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"List<VHDLEntity>::Pix::Pix(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __Q2t4List1Z10VHDLEntity3PixPQ2t4List1Z10VHDLEntity7element" \
7cb06c
-	"List<VHDLEntity>::Pix::Pix(List<VHDLEntity>::element *)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __Q2t4List1Z10VHDLEntity3PixRCQ2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"List<VHDLEntity>::Pix::Pix(List<VHDLEntity>::Pix const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __Q2t4List1Z10VHDLEntity7elementRC10VHDLEntityPT0" \
7cb06c
-	"List<VHDLEntity>::element::element(VHDLEntity const &, List<VHDLEntity>::element *)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __Q2t4List1Z10VHDLEntity7elementRCQ2t4List1Z10VHDLEntity7element" \
7cb06c
-	"List<VHDLEntity>::element::element(List<VHDLEntity>::element const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __cl__C11VHDLLibraryGt4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntity" \
7cb06c
-	"VHDLLibrary::operator()(PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> >) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __cl__Ct4List1Z10VHDLEntityRCQ2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"List<VHDLEntity>::operator()(List<VHDLEntity>::Pix const &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __ne__FPvRCQ2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"operator!=(void *, List<VHDLEntity>::Pix const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __ne__FPvRCt4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntity" \
7cb06c
-	"operator!=(void *, PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> > const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t4List1Z10VHDLEntityRCt4List1Z10VHDLEntity" \
7cb06c
-	"List<VHDLEntity>::List(List<VHDLEntity> const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntity" \
7cb06c
-	"PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> >::PixX(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntityP14VHDLLibraryRepGQ2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> >::PixX(VHDLLibraryRep *, List<VHDLEntity>::Pix)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntityRCt4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntity" \
7cb06c
-	"PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> >::PixX(PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> > const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: nextE__C11VHDLLibraryRt4PixX3Z11VHDLLibraryZ14VHDLLibraryRepZt4List1Z10VHDLEntity" \
7cb06c
-	"VHDLLibrary::nextE(PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> > &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: next__Ct4List1Z10VHDLEntityRQ2t4List1Z10VHDLEntity3Pix" \
7cb06c
-	"List<VHDLEntity>::next(List<VHDLEntity>::Pix &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: _GLOBAL_\$D\$set" "global destructors keyed to set"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: _GLOBAL_\$I\$set" "global constructors keyed to set"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __as__t5ListS1ZUiRCt5ListS1ZUi" \
7cb06c
-	"ListS<unsigned int>::operator=(ListS<unsigned int> const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __cl__Ct5ListS1ZUiRCQ2t5ListS1ZUi3Vix" \
7cb06c
-	"ListS<unsigned int>::operator()(ListS<unsigned int>::Vix const &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __cl__Ct5SetLS1ZUiRCQ2t5SetLS1ZUi3Vix" \
7cb06c
-	"SetLS<unsigned int>::operator()(SetLS<unsigned int>::Vix const &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t10ListS_link1ZUiRCUiPT0" \
7cb06c
-	"ListS_link<unsigned int>::ListS_link(unsigned int const &, ListS_link<unsigned int> *)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t10ListS_link1ZUiRCt10ListS_link1ZUi" \
7cb06c
-	"ListS_link<unsigned int>::ListS_link(ListS_link<unsigned int> const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __t5ListS1ZUiRCt5ListS1ZUi" \
7cb06c
-	"ListS<unsigned int>::ListS(ListS<unsigned int> const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: next__Ct5ListS1ZUiRQ2t5ListS1ZUi3Vix" \
7cb06c
-	"ListS<unsigned int>::next(ListS<unsigned int>::Vix &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __ne__FPvRCQ2t5SetLS1ZUi3Vix" \
7cb06c
-	"operator!=(void *, SetLS<unsigned int>::Vix const &)"
7cb06c
-    test_demangling_exact "gnu: __t8ListElem1Z5LabelRt4List1Z5Label" \
7cb06c
-	"ListElem<Label>::ListElem(List<Label> &)"
7cb06c
-    test_demangling_exact "gnu: __t8BDDHookV1ZPcRCPc" \
7cb06c
-	"BDDHookV<char *>::BDDHookV(char *const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: _vt\$t8BDDHookV1ZPc" "BDDHookV<char *> virtual table"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: __ne__FPvRCQ211BDDFunction4VixB" \
7cb06c
-	"operator!=(void *, BDDFunction::VixB const &)"
7cb06c
-    test_demangling_exact "gnu: __eq__FPvRCQ211BDDFunction4VixB" \
7cb06c
-	"operator==(void *, BDDFunction::VixB const &)"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: relativeId__CQ36T_phi210T_preserve8FPC_nextRCQ26T_phi210T_preserveRC10Parameters" \
7cb06c
-	 "T_phi2::T_preserve::FPC_next::relativeId(T_phi2::T_preserve const &, Parameters const &) const"
7cb06c
-
7cb06c
-    test_demangling_exact "gnu: _Utf390_1__1_9223372036854775807__9223372036854775" \
7cb06c
-	    "Can't demangle \"_Utf390_1__1_9223372036854775807__9223372036854775\""
7cb06c
-    test_demangling_exact "gnu: foo__I40" "foo(int64_t)"
7cb06c
-    test_demangling_exact "gnu: foo__I_200_" "foo(int512_t)"
7cb06c
-    test_demangling_exact "gnu: foo__I_200" "Can't demangle \"foo__I_200\""
7cb06c
-
7cb06c
     # Rvalue reference tests
7cb06c
     test_demangling_exact "gnu-v3: _ZN9ArrowLine19ArrowheadIntersectsEP9ArrowheadO6BoxObjP7Graphic" "ArrowLine::ArrowheadIntersects(Arrowhead*, BoxObj&&, Graphic*)"
7cb06c
     test_demangling "gnu-v3: _Z13BitPatterntoaOK10BitPatternccc" \
7cb06c
@@ -560,1012 +154,8 @@ proc test_gnu_style_demangling {} {
7cb06c
 	"VHDLLibrary::nextE(PixX<VHDLLibrary, VHDLLibraryRep, List<VHDLEntity> >&&) const"
7cb06c
     test_demangling_exact "gnu-v3: _ZNK4ListI10VHDLEntityE4nextEONS1_3PixE" \
7cb06c
 	"List<VHDLEntity>::next(List<VHDLEntity>::Pix&&) const"
7cb06c
-
7cb06c
-    ## Buffer overrun.  Should make GDB crash.  Woo hoo!
7cb06c
-    test_demangling_exact "gnu: foo__I_4000000000000000000000000000000000000000000000000000000000000000000000000" "Can't demangle \"foo__I_4000000000000000000000000000000000000000000000000000000000000000000000000\""
7cb06c
-
7cb06c
-    ## 1999-04-19: "Fix from Dale Hawkins".  Shouldn't segfault.
7cb06c
-    # Accept even a dubious demangling; the string is ambiguous.
7cb06c
-
7cb06c
-    gdb_test_multiple "demangle __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator" {
7cb06c
-	-re "virtual function thunk \\(delta:-64\\) for CosNaming::_proxy_NamingContext::_0RL__list\\(unsigned long, _CORBA_Unbounded_Sequence<CosNaming::Binding> \\*\\&, CosNaming::BindingIterator \\*\\&\\)\r\n$gdb_prompt $" {
7cb06c
-	    pass "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator"
7cb06c
-	}
7cb06c
-	-re ".*Can't demangle \"__thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator\"\r\n$gdb_prompt $" {
7cb06c
-	    pass "gnu: __thunk_64__0RL__list__Q29CosNaming20_proxy_NamingContextUlRPt25_CORBA_Unbounded_Sequence1ZQ29CosNaming7BindingRPQ29CosNaming15BindingIterator"
7cb06c
-	}
7cb06c
-    }
7cb06c
-}
7cb06c
-
7cb06c
-#
7cb06c
-#  Test lucid style name demangling
7cb06c
-#
7cb06c
-
7cb06c
-proc test_lucid_style_demangling {} {
7cb06c
-    test_demangling_exact "lucid: WS__FR7istream" "WS(istream &)"
7cb06c
-    test_demangling_exact "lucid: __aa__3fooFR3foo" "foo::operator&&(foo &)"
7cb06c
-    test_demangling_exact "lucid: __aad__3fooFR3foo" "foo::operator&=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ad__3fooFR3foo" "foo::operator&(foo &)"
7cb06c
-    test_demangling_exact "lucid: __adv__3fooFR3foo" "foo::operator/=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __adv__7complexF7complex" "complex::operator/=(complex)"
7cb06c
-    test_demangling_exact "lucid: __aer__3fooFR3foo" "foo::operator^=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __als__3fooFR3foo" "foo::operator<<=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __amd__3fooFR3foo" "foo::operator%=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ami__3fooFR3foo" "foo::operator-=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __amu__3fooFR3foo" "foo::operator*=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __amu__7complexF7complex" "complex::operator*=(complex)"
7cb06c
-    test_demangling_exact "lucid: __aor__3fooFR3foo" "foo::operator|=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __apl__3fooFR3foo" "foo::operator+=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ars__3fooFR3foo" "foo::operator>>=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __as__18istream_withassignFP9streambuf" "istream_withassign::operator=(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: __as__18istream_withassignFR7istream" "istream_withassign::operator=(istream &)"
7cb06c
-    test_demangling_exact "lucid: __as__3fooFR3foo" "foo::operator=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __as__3iosFR3ios" "ios::operator=(ios &)"
7cb06c
-    test_demangling_exact "lucid: __cl__3fooFR3foo" "foo::operator()(foo &)"
7cb06c
-    test_demangling_exact "lucid: __cm__3fooFR3foo" "foo::operator, (foo &)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __co__3fooFv" "foo::operator~(void)"
7cb06c
-    test_demangling_exact "lucid: __ct__10istrstreamFPc" "istrstream::istrstream(char *)"
7cb06c
-    test_demangling_exact "lucid: __ct__10istrstreamFPci" "istrstream::istrstream(char *, int)"
7cb06c
-    test_demangling_exact "lucid: __ct__10ostrstreamFPciT2" "ostrstream::ostrstream(char *, int, int)"
7cb06c
-    test_demangling_exact "lucid: __ct__10ostrstreamFv" "ostrstream::ostrstream(void)"
7cb06c
-    test_demangling_exact "lucid: __ct__10smanip_intFPFR3iosi_R3iosi" "smanip_int::smanip_int(ios &(*)(ios &, int), int)"
7cb06c
-    test_demangling "lucid: __ct__11c_exceptionFPcRC7complexT2" "c_exception::c_exception\[(\]+char \[*\]+, (const complex|complex const) &, (const complex|complex const) &\[)\]+"
7cb06c
-    test_demangling "lucid: __ct__11fstreambaseFPCciT2" "fstreambase::fstreambase\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-    test_demangling_exact "lucid: __ct__11fstreambaseFi" "fstreambase::fstreambase(int)"
7cb06c
-    test_demangling_exact "lucid: __ct__11fstreambaseFiPcT1" "fstreambase::fstreambase(int, char *, int)"
7cb06c
-    test_demangling_exact "lucid: __ct__11fstreambaseFv" "fstreambase::fstreambase(void)"
7cb06c
-    test_demangling_exact "lucid: __ct__11smanip_longFPFR3iosl_R3iosl" "smanip_long::smanip_long(ios &(*)(ios &, long), long)"
7cb06c
-    test_demangling_exact "lucid: __ct__11stdiostreamFP4FILE" "stdiostream::stdiostream(FILE *)"
7cb06c
-    test_demangling_exact "lucid: __ct__12strstreambufFPFl_PvPFPv_v" "strstreambuf::strstreambuf(void *(*)(long), void (*)(void *))"
7cb06c
-    test_demangling_exact "lucid: __ct__12strstreambufFPUciT1" "strstreambuf::strstreambuf(unsigned char *, int, unsigned char *)"
7cb06c
-    test_demangling_exact "lucid: __ct__12strstreambufFPciT1" "strstreambuf::strstreambuf(char *, int, char *)"
7cb06c
-    test_demangling_exact "lucid: __ct__12strstreambufFi" "strstreambuf::strstreambuf(int)"
7cb06c
-    test_demangling_exact "lucid: __ct__12strstreambufFv" "strstreambuf::strstreambuf(void)"
7cb06c
-    test_demangling_exact "lucid: __ct__13strstreambaseFPciT1" "strstreambase::strstreambase(char *, int, char *)"
7cb06c
-    test_demangling_exact "lucid: __ct__3fooFR3foo" "foo::foo(foo &)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __ct__3fooFi" "foo::foo(int)"
7cb06c
-    test_demangling_exact "lucid: __ct__3fooFiN31" "foo::foo(int, int, int, int)"
7cb06c
-    test_demangling "lucid: __ct__3fooFiPCc" \
7cb06c
-	"foo::foo\[(\]+int, (const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "lucid: __ct__3fooFiR3fooT1T2T1T2" "foo::foo(int, foo &, int, foo &, int, foo &)"
7cb06c
-    test_demangling_exact "lucid: __ct__3iosFP9streambuf" "ios::ios(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: __ct__7filebufFiPcT1" "filebuf::filebuf(int, char *, int)"
7cb06c
-    test_demangling "lucid: __ct__7fstreamFPCciT2" \
7cb06c
-	"fstream::fstream\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-    test_demangling_exact "lucid: __ct__7fstreamFiPcT1" "fstream::fstream(int, char *, int)"
7cb06c
-    test_demangling_exact "lucid: __ct__7istreamFP9streambuf" "istream::istream(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: __ct__7istreamFP9streambufiP7ostream" "istream::istream(streambuf *, int, ostream *)"
7cb06c
-    test_demangling_exact "lucid: __ct__7istreamFiPcT1" "istream::istream(int, char *, int)"
7cb06c
-    test_demangling_exact "lucid: __ct__7istreamFiT1P7ostream" "istream::istream(int, int, ostream *)"
7cb06c
-    test_demangling_exact "lucid: __ct__7ostreamFP9streambuf" "ostream::ostream(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: __ct__7ostreamFiPc" "ostream::ostream(int, char *)"
7cb06c
-    test_demangling "lucid: __ct__8ifstreamFPCciT2" \
7cb06c
-	"ifstream::ifstream\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-    test_demangling_exact "lucid: __ct__8ifstreamFiPcT1" "ifstream::ifstream(int, char *, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __ct__Q23foo3barFv" "foo::bar::bar(void)"
7cb06c
-    test_demangling_exact "lucid: __ct__Q33foo3bar4bellFv" "foo::bar::bell::bell(void)"
7cb06c
-    test_demangling_exact "lucid: __dl__3fooSFPv" "foo::operator delete(void *) static"
7cb06c
-    test_demangling_exact "lucid: __dl__FPv" "operator delete(void *)"
7cb06c
-    test_demangling_exact "lucid: __dt__10istrstreamFv" "istrstream::~istrstream(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __dt__Q23foo3barFv" "foo::bar::~bar(void)"
7cb06c
-    test_demangling_exact "lucid: __dt__Q33foo3bar4bellFv" "foo::bar::bell::~bell(void)"
7cb06c
-    test_demangling_exact "lucid: __dv__3fooFR3foo" "foo::operator/(foo &)"
7cb06c
-    test_demangling_exact "lucid: __dv__F7complexT1" "operator/(complex, complex)"
7cb06c
-    test_demangling_exact "lucid: __eq__3fooFR3foo" "foo::operator==(foo &)"
7cb06c
-    test_demangling_exact "lucid: __er__3fooFR3foo" "foo::operator^(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ge__3fooFR3foo" "foo::operator>=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __gt__3fooFR3foo" "foo::operator>(foo &)"
7cb06c
-    test_demangling_exact "lucid: __le__3fooFR3foo" "foo::operator<=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ls__3fooFR3foo" "foo::operator<<(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFP9streambuf" "ostream::operator<<(streambuf *)"
7cb06c
-
7cb06c
-    test_demangling "lucid: __ls__7ostreamFPCc" \
7cb06c
-	"ostream::operator<<\[(\]+(const char|char const) \[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFPFR3ios_R3ios" "ostream::operator<<(ios &(*)(ios &))"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFPv" "ostream::operator<<(void *)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFUi" "ostream::operator<<(unsigned int)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFUl" "ostream::operator<<(unsigned long)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFd" "ostream::operator<<(double)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFf" "ostream::operator<<(float)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFi" "ostream::operator<<(int)"
7cb06c
-    test_demangling_exact "lucid: __ls__7ostreamFl" "ostream::operator<<(long)"
7cb06c
-    test_demangling_exact "lucid: __ls__FR7ostream7complex" "operator<<(ostream &, complex)"
7cb06c
-    test_demangling_exact "lucid: __lt__3fooFR3foo" "foo::operator<(foo &)"
7cb06c
-    test_demangling_exact "lucid: __md__3fooFR3foo" "foo::operator%(foo &)"
7cb06c
-    test_demangling_exact "lucid: __mi__3fooFR3foo" "foo::operator-(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ml__3fooFR3foo" "foo::operator*(foo &)"
7cb06c
-    test_demangling_exact "lucid: __ml__F7complexT1" "operator*(complex, complex)"
7cb06c
-    test_demangling_exact "lucid: __mm__3fooFi" "foo::operator--(int)"
7cb06c
-    test_demangling_exact "lucid: __ne__3fooFR3foo" "foo::operator!=(foo &)"
7cb06c
-    test_demangling_exact "lucid: __nt__3fooFv" "foo::operator!(void)"
7cb06c
-    test_demangling_exact "lucid: __nw__3fooSFi" "foo::operator new(int) static"
7cb06c
-    test_demangling_exact "lucid: __nw__FUi" "operator new(unsigned int)"
7cb06c
-    test_demangling_exact "lucid: __nw__FUiPv" "operator new(unsigned int, void *)"
7cb06c
-    test_demangling_exact "lucid: __oo__3fooFR3foo" "foo::operator||(foo &)"
7cb06c
-    test_demangling_exact "lucid: __opPc__3fooFv" "foo::operator char *(void)"
7cb06c
-    test_demangling_exact "lucid: __opi__3fooFv" "foo::operator int(void)"
7cb06c
-    test_demangling_exact "lucid: __or__3fooFR3foo" "foo::operator|(foo &)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __pl__3fooFR3foo" "foo::operator+(foo &)"
7cb06c
-    test_demangling_exact "lucid: __pp__3fooFi" "foo::operator++(int)"
7cb06c
-    test_demangling_exact "lucid: __pt__3fooFv" "foo::operator->(void)"
7cb06c
-    test_demangling_exact "lucid: __rm__3fooFR3foo" "foo::operator->*(foo &)"
7cb06c
-    test_demangling_exact "lucid: __rs__3fooFR3foo" "foo::operator>>(foo &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFP9streambuf" "istream::operator>>(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFPFR3ios_R3ios" "istream::operator>>(ios &(*)(ios &))"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFPFR7istream_R7istream" "istream::operator>>(istream &(*)(istream &))"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFPUc" "istream::operator>>(unsigned char *)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFPc" "istream::operator>>(char *)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRUi" "istream::operator>>(unsigned int &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRUl" "istream::operator>>(unsigned long &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRUs" "istream::operator>>(unsigned short &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRd" "istream::operator>>(double &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRf" "istream::operator>>(float &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRi" "istream::operator>>(int &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRl" "istream::operator>>(long &)"
7cb06c
-    test_demangling_exact "lucid: __rs__7istreamFRs" "istream::operator>>(short &)"
7cb06c
-    test_demangling_exact "lucid: __rs__FR7istreamR7complex" "operator>>(istream &, complex &)"
7cb06c
-    test_demangling "lucid: __vc__3fooFR3foo" "foo::operator\\\[\\\]\\(foo &\\)"
7cb06c
-    test_demangling_exact "lucid: __vtbl__10istrstream" "istrstream virtual table"
7cb06c
-    test_demangling_exact "lucid: __vtbl__17ostream__iostream__19iostream_withassign" "iostream_withassign::ostream__iostream virtual table"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: __vtbl__3ios" "ios virtual table"
7cb06c
-    test_demangling_exact "lucid: __vtbl__3ios__13strstreambase" "strstreambase::ios virtual table"
7cb06c
-
7cb06c
-    # GDB 930414 demangles this as t_cc_main_ (obviously wrong).
7cb06c
-    # GDB 930701 gets into an infinite loop.
7cb06c
-    # GDB 930727 says "Can't demangle".
7cb06c
-    # What is the correct demangling?  FIXME.
7cb06c
-
7cb06c
-    # NOTE: carlton/2003-01-17: No, don't FIXME, just obsolete lucid.
7cb06c
-    # I'm KFAILing this rather than deleting it for form's sake.
7cb06c
-    setup_kfail "gdb/945" "*-*-*"
7cb06c
-    test_demangling_exact "lucid: __vtbl__3foo__vt_cc_main_" ""
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: abs__F7complex" "abs(complex)"
7cb06c
-    test_demangling_exact "lucid: allocate__9streambufFv" "streambuf::allocate(void)"
7cb06c
-    test_demangling_exact "lucid: attach__11fstreambaseFi" "fstreambase::attach(int)"
7cb06c
-    test_demangling_exact "lucid: bitalloc__3iosSFv" "ios::bitalloc(void) static"
7cb06c
-    test_demangling_exact "lucid: chr__FiT1" "chr(int, int)"
7cb06c
-    test_demangling_exact "lucid: complex_error__FR11c_exception" "complex_error(c_exception &)"
7cb06c
-    test_demangling_exact "lucid: complexfunc2__FPFPc_i" "complexfunc2(int (*)(char *))"
7cb06c
-    test_demangling_exact "lucid: complexfunc3__FPFPFPl_s_i" "complexfunc3(int (*)(short (*)(long *)))"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: complexfunc4__FPFPFPc_s_i" "complexfunc4(int (*)(short (*)(char *)))"
7cb06c
-    test_demangling_exact "lucid: complexfunc5__FPFPc_PFl_i" "complexfunc5(int (*(*)(char *))(long))"
7cb06c
-    test_demangling_exact "lucid: complexfunc6__FPFPi_PFl_i" "complexfunc6(int (*(*)(int *))(long))"
7cb06c
-    test_demangling_exact "lucid: complexfunc7__FPFPFPc_i_PFl_i" "complexfunc7(int (*(*)(int (*)(char *)))(long))"
7cb06c
-    test_demangling_exact "lucid: complicated_put__7ostreamFc" "ostream::complicated_put(char)"
7cb06c
-    test_demangling_exact "lucid: conv10__FlPc" "conv10(long, char *)"
7cb06c
-    test_demangling_exact "lucid: conv16__FUlPc" "conv16(unsigned long, char *)"
7cb06c
-    test_demangling_exact "lucid: dec__FR3ios" "dec(ios &)"
7cb06c
-    test_demangling_exact "lucid: dec__Fli" "dec(long, int)"
7cb06c
-    test_demangling_exact "lucid: dofield__FP7ostreamPciT2T3" "dofield(ostream *, char *, int, char *, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: flags__3iosFl" "ios::flags(long)"
7cb06c
-    test_demangling_exact "lucid: flags__3iosFv" "ios::flags(void)"
7cb06c
-    test_demangling_exact "lucid: foo__FiN31" "foo(int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: foo__FiR3fooT1T2T1T2" "foo(int, foo &, int, foo &, int, foo &)"
7cb06c
-    test_demangling_exact "lucid: foo___3barFl" "bar::foo_(long)"
7cb06c
-    test_demangling "lucid: form__FPCce" "form\[(\]+(const char|char const) \[*\]+,...\[)\]+"
7cb06c
-    test_demangling_exact "lucid: get__7istreamFPcic" "istream::get(char *, int, char)"
7cb06c
-    test_demangling_exact "lucid: get__7istreamFR9streambufc" "istream::get(streambuf &, char)"
7cb06c
-    test_demangling_exact "lucid: get_complicated__7istreamFRUc" "istream::get_complicated(unsigned char &)"
7cb06c
-    test_demangling_exact "lucid: get_complicated__7istreamFRc" "istream::get_complicated(char &)"
7cb06c
-    test_demangling_exact "lucid: getline__7istreamFPUcic" "istream::getline(unsigned char *, int, char)"
7cb06c
-    test_demangling_exact "lucid: getline__7istreamFPcic" "istream::getline(char *, int, char)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: ignore__7istreamFiT1" "istream::ignore(int, int)"
7cb06c
-    test_demangling_exact "lucid: init__12strstreambufFPciT1" "strstreambuf::init(char *, int, char *)"
7cb06c
-    test_demangling_exact "lucid: init__3iosFP9streambuf" "ios::init(streambuf *)"
7cb06c
-    test_demangling_exact "lucid: initcount__13Iostream_init" "Iostream_init::initcount"
7cb06c
-    test_demangling_exact "lucid: ipfx__7istreamFi" "istream::ipfx(int)"
7cb06c
-    test_demangling_exact "lucid: ls_complicated__7ostreamFUc" "ostream::ls_complicated(unsigned char)"
7cb06c
-    test_demangling_exact "lucid: ls_complicated__7ostreamFc" "ostream::ls_complicated(char)"
7cb06c
-    test_demangling "lucid: open__11fstreambaseFPCciT2" \
7cb06c
-	"fstreambase::open\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-    test_demangling "lucid: open__7filebufFPCciT2" \
7cb06c
-	"filebuf::open\[(\]+(const char|char const) \[*\]+, int, int\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: overload1arg__FSc" "overload1arg(signed char)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__FUc" "overload1arg(unsigned char)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__FUi" "overload1arg(unsigned int)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__FUl" "overload1arg(unsigned long)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__FUs" "overload1arg(unsigned short)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fc" "overload1arg(char)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fd" "overload1arg(double)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Ff" "overload1arg(float)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fi" "overload1arg(int)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fl" "overload1arg(long)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fs" "overload1arg(short)"
7cb06c
-    test_demangling_exact "lucid: overload1arg__Fv" "overload1arg(void)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN21" "overloadargs(int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN31" "overloadargs(int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN41" "overloadargs(int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN51" "overloadargs(int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN61" "overloadargs(int, int, int, int, int, int, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN71" "overloadargs(int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN81" "overloadargs(int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN91" "overloadargs(int, int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiN91N11" "overloadargs(int, int, int, int, int, int, int, int, int, int, int)"
7cb06c
-    test_demangling_exact "lucid: overloadargs__FiT1" "overloadargs(int, int)"
7cb06c
-    test_demangling_exact "lucid: polar__FdT1" "polar(double, double)"
7cb06c
-    test_demangling_exact "lucid: pow__F7complexT1" "pow(complex, complex)"
7cb06c
-    test_demangling_exact "lucid: pow__F7complexd" "pow(complex, double)"
7cb06c
-    test_demangling_exact "lucid: pow__F7complexi" "pow(complex, int)"
7cb06c
-    test_demangling_exact "lucid: pow__Fd7complex" "pow(double, complex)"
7cb06c
-    test_demangling_exact "lucid: pstart__FPciT2" "pstart(char *, int, int)"
7cb06c
-    test_demangling_exact "lucid: put__7ostreamFc" "ostream::put(char)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: read__7istreamFPci" "istream::read(char *, int)"
7cb06c
-    test_demangling_exact "lucid: resetiosflags__FR3iosl" "resetiosflags(ios &, long)"
7cb06c
-    test_demangling_exact "lucid: restore_errno__FRi" "restore_errno(int &)"
7cb06c
-    test_demangling_exact "lucid: rs_complicated__7istreamFRUc" "istream::rs_complicated(unsigned char &)"
7cb06c
-    test_demangling_exact "lucid: rs_complicated__7istreamFRc" "istream::rs_complicated(char &)"
7cb06c
-    test_demangling_exact "lucid: seekg__7istreamFl8seek_dir" "istream::seekg(long, seek_dir)"
7cb06c
-    test_demangling_exact "lucid: seekoff__12strstreambufFl8seek_diri" "strstreambuf::seekoff(long, seek_dir, int)"
7cb06c
-    test_demangling_exact "lucid: seekoff__9streambufFlQ2_3ios12ios_seek_diri" "streambuf::seekoff(long, ios::ios_seek_dir, int)"
7cb06c
-    test_demangling_exact "lucid: seekpos__9streambufFli" "streambuf::seekpos(long, int)"
7cb06c
-    test_demangling_exact "lucid: set_new_handler__FPFv_v" "set_new_handler(void (*)(void))"
7cb06c
-    test_demangling_exact "lucid: setb__9streambufFPcT1i" "streambuf::setb(char *, char *, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: setb__FR3iosi" "setb(ios &, int)"
7cb06c
-    test_demangling_exact "lucid: setbuf__11fstreambaseFPci" "fstreambase::setbuf(char *, int)"
7cb06c
-    test_demangling_exact "lucid: setbuf__9streambufFPUci" "streambuf::setbuf(unsigned char *, int)"
7cb06c
-    test_demangling_exact "lucid: setbuf__9streambufFPciT2" "streambuf::setbuf(char *, int, int)"
7cb06c
-    test_demangling_exact "lucid: setf__3iosFlT1" "ios::setf(long, long)"
7cb06c
-    test_demangling_exact "lucid: setfill__FR3iosi" "setfill(ios &, int)"
7cb06c
-    test_demangling_exact "lucid: setg__9streambufFPcN21" "streambuf::setg(char *, char *, char *)"
7cb06c
-    test_demangling_exact "lucid: setp__9streambufFPcT1" "streambuf::setp(char *, char *)"
7cb06c
-
7cb06c
-    test_demangling "lucid: sputn__9streambufFPCci" \
7cb06c
-	"streambuf::sputn\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling "lucid: str__FPCci" \
7cb06c
-	"str\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling_exact "lucid: tie__3iosFP7ostream" "ios::tie(ostream *)"
7cb06c
-    test_demangling_exact "lucid: uconv10__FUlPc" "uconv10(unsigned long, char *)"
7cb06c
-
7cb06c
-    test_demangling "lucid: write__7ostreamFPCci" \
7cb06c
-	"ostream::write\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-    test_demangling_exact "lucid: xget__7istreamFPc" "istream::xget(char *)"
7cb06c
-    test_demangling_exact "lucid: xsgetn__9streambufFPci" "streambuf::xsgetn(char *, int)"
7cb06c
-    test_demangling "lucid: xsputn__9streambufFPCci" \
7cb06c
-	"streambuf::xsputn\[(\]+(const char|char const) \[*\]+, int\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "lucid: _Utf390_1__1_9223372036854775807__9223372036854775" \
7cb06c
-	    "Can't demangle \"_Utf390_1__1_9223372036854775807__9223372036854775\""
7cb06c
 }
7cb06c
 
7cb06c
-#
7cb06c
-#  Test arm style name demangling
7cb06c
-#
7cb06c
-
7cb06c
-proc test_arm_style_demangling {} {
7cb06c
-    test_demangling_exact "arm: __dt__21T5__pt__11_PFiPPdPv_iFv" "T5<int (*)(int, double **, void *)>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__1cFi" "c::c(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__11T5__pt__2_iFv" "T5<int>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__11T5__pt__2_cFv" "T5<char>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__2T2Fi" "T2::T2(int)"
7cb06c
-    test_demangling_exact "arm: __dt__2T1Fv" "T1::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__12T5__pt__3_1xFv" "T5<x>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__17T5__pt__8_PFcPv_iFv" "T5<int (*)(char, void *)>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling "arm: g__FP1cPC1cT1" \
7cb06c
-	"g\[(\]+c *\[*\]+, (const c|c const) *\[*\]+, c *\[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FPUlPCUlT1" \
7cb06c
-	"g\[(\]+unsigned long \[*\]+, (const unsigned long|unsigned long const) \[*\]+, unsigned long \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FPUiPCUiT1" \
7cb06c
-	"g\[(\]+unsigned int \[*\]+, (const unsigned int|unsigned int const) \[*\]+, unsigned int \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FPUsPCUsT1" \
7cb06c
-	"g\[(\]+unsigned short \[*\]+, (const unsigned short|unsigned short const) \[*\]+, unsigned short \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FPUcPCUcT1" \
7cb06c
-	"g\[(\]+unsigned char \[*\]+, (const unsigned char|unsigned char const) \[*\]+, unsigned char \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TPlPClT2" \
7cb06c
-	"g\[(\]+T, long \[*\]+, (const long|long const) \[*\]+, long \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRlRClT2" \
7cb06c
-	"g\[(\]+R, long &, (const long|long const) &, long &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TPiPCiT2" \
7cb06c
-	"g\[(\]+T, int \[*\]+, (const int|int const) \[*\]+, int \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRiRCiT2" \
7cb06c
-	"g\[(\]+R, int &, (const int|int const) &, int &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TPsPCsT2" \
7cb06c
-	"g\[(\]+T, short \[*\]+, (const short|short const) \[*\]+, short \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRsRCsT2" \
7cb06c
-	"g\[(\]+R, short &, (const short|short const) &, short &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TPcPCcT2" \
7cb06c
-	"g\[(\]+T, char \[*\]+, (const char|char const) \[*\]+, char \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRcRCcT2" \
7cb06c
-	"g\[(\]+R, char &, (const char|char const) &, char &\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__21T5__pt__11_PFiPPdPv_iFi" "T5<int (*)(int, double **, void *)>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling "arm: __gt__FRC2T2c" \
7cb06c
-	"operator>\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "arm: __ge__FRC2T2c" \
7cb06c
-	"operator>=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "arm: __lt__FRC2T2c" \
7cb06c
-	"operator<\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "arm: __le__FRC2T2c" \
7cb06c
-	"operator<=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "arm: __ne__FRC2T2c" \
7cb06c
-	"operator!=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "arm: __eq__FRC2T2c" \
7cb06c
-	"operator==\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling_exact "arm: __amd__FR2T2i" "operator%=(T2 &, int)"
7cb06c
-    test_demangling_exact "arm: __adv__FR2T2i" "operator/=(T2 &, int)"
7cb06c
-    test_demangling_exact "arm: __amu__FR2T2i" "operator*=(T2 &, int)"
7cb06c
-    test_demangling_exact "arm: __ami__FR2T2i" "operator-=(T2 &, int)"
7cb06c
-    test_demangling_exact "arm: __apl__FR2T2i" "operator+=(T2 &, int)"
7cb06c
-    test_demangling_exact "arm: __nw__2T1SFUi" "T1::operator new(unsigned int) static"
7cb06c
-    test_demangling_exact "arm: __dl__2T1SFPv" "T1::operator delete(void *) static"
7cb06c
-    test_demangling_exact "arm: put__2T7SFi" "T7::put(int) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__12T5__pt__3_1xSFPv" "T5<x>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: h__FUc" "h(unsigned char)"
7cb06c
-    test_demangling_exact "arm: f__Fic" "f(int, char)"
7cb06c
-    test_demangling_exact "arm: h__FUi" "h(unsigned int)"
7cb06c
-    test_demangling_exact "arm: h__Fci" "h(char, int)"
7cb06c
-    test_demangling_exact "arm: h__FUl" "h(unsigned long)"
7cb06c
-    test_demangling_exact "arm: h__Fcl" "h(char, long)"
7cb06c
-    test_demangling_exact "arm: h__FUs" "h(unsigned short)"
7cb06c
-    test_demangling_exact "arm: h__Fcs" "h(char, short)"
7cb06c
-    test_demangling "arm: __amd__FR2T2RC2T2" \
7cb06c
-	"operator%=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __adv__FR2T2RC2T2" \
7cb06c
-	"operator/=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __amu__FR2T2RC2T2" \
7cb06c
-	"operator\[*\]+=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __ami__FR2T2RC2T2" \
7cb06c
-	"operator-=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __apl__FR2T2RC2T2" \
7cb06c
-	"operator\[+\]+=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "arm: g__F1SRPUlRPCUlT2" \
7cb06c
-	"g\[(\]+S, unsigned long \[*\]+&, (const unsigned long|unsigned long const) \[*\]+&, unsigned long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPUiRPCUiT2" \
7cb06c
-	"g\[(\]+S, unsigned int \[*\]+&, (const unsigned int|unsigned int const) \[*\]+&, unsigned int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPUsRPCUsT2" \
7cb06c
-	"g\[(\]+S, unsigned short \[*\]+&, (const unsigned short|unsigned short const) \[*\]+&, unsigned short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPUcRPCUcT2" \
7cb06c
-	"g\[(\]+S, unsigned char \[*\]+&, (const unsigned char|unsigned char const) \[*\]+&, unsigned char \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1SRPlRPClT3" \
7cb06c
-	"g\[(\]+T, S, long \[*\]+&, (const long|long const) \[*\]+&, long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1SRPiRPCiT3" \
7cb06c
-	"g\[(\]+T, S, int \[*\]+&, (const int|int const) \[*\]+&, int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1SRPcRPCcT3" \
7cb06c
-	"g\[(\]+T, S, char \[*\]+&, (const char|char const) \[*\]+&, char \[*\]+&\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: X__12T5__pt__3_1x" "T5<x>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__11T5__pt__2_iFi" "T5<int>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__11T5__pt__2_cFi" "T5<char>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling "arm: __gt__FRC2T2T1" \
7cb06c
-	"operator>\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __ge__FRC2T2T1" \
7cb06c
-	"operator>=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __lt__FRC2T2T1" \
7cb06c
-	"operator<\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __le__FRC2T2T1" \
7cb06c
-	"operator<=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __ne__FRC2T2T1" \
7cb06c
-	"operator!=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __eq__FRC2T2T1" \
7cb06c
-	"operator==\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: g__FcR1cRC1cT2" \
7cb06c
-	"g\[(\]+char, c &, (const c|c const) &, c &\[)\]+"
7cb06c
-    test_demangling "arm: g__FcRPdRPCdT2" \
7cb06c
-	"g\[(\]+char, double *\[*\]+&, (const double|double const) *\[*\]+&, double *\[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__FcRPfRPCfT2" \
7cb06c
-	"g\[(\]+char, float *\[*\]+&, (const float|float const) *\[*\]+&, float *\[*\]+&\[)\]+"
7cb06c
-    test_demangling_exact "arm: h__FcT1" "h(char, char)"
7cb06c
-    test_demangling_exact "arm: f__Ficd" "f(int, char, double)"
7cb06c
-    test_demangling "arm: g__F1T1SdRPsRPCsT4" \
7cb06c
-	"g\[(\]+T, S, double, short \[*\]+&, (const short|short const) \[*\]+&, short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1cC1cT1" \
7cb06c
-	"g\[(\]+c, (const c|c const), c\[)\]+"
7cb06c
-    test_demangling "arm: g__FPdPCdT1" \
7cb06c
-	"g\[(\]+double *\[*\]+, (const double|double const) *\[*\]+, double *\[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FPfPCfT1" \
7cb06c
-	"g\[(\]+float *\[*\]+, (const float|float const) *\[*\]+, float *\[*\]+\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "arm: g__FUlCUlT1" \
7cb06c
-	"g\[(\]+unsigned long, (const unsigned long|unsigned long const), unsigned long\[)\]+"
7cb06c
-    test_demangling "arm: g__FPlPClT1" \
7cb06c
-	"g\[(\]+long \[*\]+, (const long|long const) \[*\]+, long \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FUiCUiT1" \
7cb06c
-	"g\[(\]+unsigned int, (const unsigned int|unsigned int const), unsigned int\[)\]+"
7cb06c
-    test_demangling "arm: g__FPiPCiT1" \
7cb06c
-	"g\[(\]+int \[*\]+, (const int|int const) \[*\]+, int \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FUsCUsT1" \
7cb06c
-	"g\[(\]+unsigned short, (const unsigned short|unsigned short const), unsigned short\[)\]+"
7cb06c
-    test_demangling "arm: g__FPsPCsT1" \
7cb06c
-	"g\[(\]+short \[*\]+, (const short|short const) \[*\]+, short \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__FUcCUcT1" \
7cb06c
-	"g\[(\]+unsigned char, (const unsigned char|unsigned char const), unsigned char\[)\]+"
7cb06c
-    test_demangling "arm: g__FPcPCcT1" \
7cb06c
-	"g\[(\]+char \[*\]+, (const char|char const) \[*\]+, char \[*\]+\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TlClT2" \
7cb06c
-	"g\[(\]+T, long, (const long|long const), long\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TiCiT2" \
7cb06c
-	"g\[(\]+T, int, (const int|int const), int\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TsCsT2" \
7cb06c
-	"g\[(\]+T, short, (const short|short const), short\[)\]+"
7cb06c
-    test_demangling "arm: g__F1TcCcT2" \
7cb06c
-	"g\[(\]+T, char, (const char|char const), char\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__17T5__pt__8_PFcPv_iSFPv" "T5<int (*)(char, void *)>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling "arm: printf__FPCce" \
7cb06c
-	"printf\[(\]+(const char|char const) \[*\]+,...\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: X__17T5__pt__8_PFcPv_i" "T5<int (*)(char, void *)>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__12T5__pt__3_1xFi" "T5<x>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling "arm: g__F1SRUlRCUlT2" \
7cb06c
-	"g\[(\]+S, unsigned long &, (const unsigned long|unsigned long const) &, unsigned long &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPlRPClT2" \
7cb06c
-	"g\[(\]+S, long \[*\]+&, (const long|long const) \[*\]+&, long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRUiRCUiT2" \
7cb06c
-	"g\[(\]+R, unsigned int &, (const unsigned int|unsigned int const) &, unsigned int &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPiRPCiT2" \
7cb06c
-	"g\[(\]+S, int \[*\]+&, (const int|int const) \[*\]+&, int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRUsRCUsT2" \
7cb06c
-	"g\[(\]+R, unsigned short &, (const unsigned short|unsigned short const) &, unsigned short &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPsRPCsT2" \
7cb06c
-	"g\[(\]+S, short \[*\]+&, (const short|short const) \[*\]+&, short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1RRUcRCUcT2" \
7cb06c
-	"g\[(\]+R, unsigned char &, (const unsigned char|unsigned char const) &, unsigned char &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1SRPcRPCcT2" \
7cb06c
-	"g\[(\]+S, char \[*\]+&, (const char|char const) \[*\]+&, char \[*\]+&\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1RRlRClT3" \
7cb06c
-	"g\[(\]+T, R, long &, (const long|long const) &, long &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1RRiRCiT3" \
7cb06c
-	"g\[(\]+T, R, int &, (const int|int const) &, int &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1RRsRCsT3" \
7cb06c
-	"g\[(\]+T, R, short &, (const short|short const) &, short &\[)\]+"
7cb06c
-    test_demangling "arm: g__F1T1RRcRCcT3" \
7cb06c
-	"g\[(\]+T, R, char &, (const char|char const) &, char &\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__21T5__pt__11_PFiPPdPv_iSFPv" "T5<int (*)(int, double **, void *)>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __std__foo" "global destructors keyed to foo"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __sti__bar" "global constructors keyed to bar"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: f__FicdPcPFci_v" "f(int, char, double, char *, void (*)(char, int))"
7cb06c
-    test_demangling_exact "arm: f__FicdPcPFic_v" "f(int, char, double, char *, void (*)(int, char))"
7cb06c
-    test_demangling_exact "arm: get__2T7SFv" "T7::get(void) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: X__21T5__pt__11_PFiPPdPv_i" "T5<int (*)(int, double **, void *)>::X"
7cb06c
-
7cb06c
-    test_demangling "arm: g__FcRdRCdT2" \
7cb06c
-	"g\[(\]+char, double &, (const double|double const) &, double &\[)\]+"
7cb06c
-    test_demangling "arm: g__FcRfRCfT2" \
7cb06c
-	"g\[(\]+char, float &, (const float|float const) &, float &\[)\]+"
7cb06c
-    test_demangling "arm: __md__FC2T2i" \
7cb06c
-	"operator%\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "arm: __dv__FC2T2i" \
7cb06c
-	"operator/\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "arm: __ml__FC2T2i" \
7cb06c
-	"operator\[*\]+\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "arm: __mi__FC2T2i" \
7cb06c
-	"operator-\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "arm: __pl__FC2T2i" \
7cb06c
-	"operator\[+\]+\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__11T5__pt__2_iSFPv" "T5<int>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__11T5__pt__2_cSFPv" "T5<char>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: h__Fc" "h(char)"
7cb06c
-    test_demangling_exact "arm: h__Fd" "h(double)"
7cb06c
-    test_demangling_exact "arm: h__Ff" "h(float)"
7cb06c
-    test_demangling_exact "arm: h__Fi" "h(int)"
7cb06c
-    test_demangling_exact "arm: f__Fi" "f(int)"
7cb06c
-    test_demangling_exact "arm: h__Fl" "h(long)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: h__Fs" "h(short)"
7cb06c
-    test_demangling "arm: __md__FC2T2RC2T2" \
7cb06c
-	"operator%\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __dv__FC2T2RC2T2" \
7cb06c
-	"operator/\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __ml__FC2T2RC2T2" \
7cb06c
-	"operator\[*\]+\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __mi__FC2T2RC2T2" \
7cb06c
-	"operator-\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: __pl__FC2T2RC2T2" \
7cb06c
-	"operator\[+\]+\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "arm: g__FcRP1cRPC1cT2" \
7cb06c
-	"g\[(\]+char, c *\[*\]+&, (const c|c const) *\[*\]+&, c *\[*\]+&\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: X__11T5__pt__2_c" "T5<char>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: X__11T5__pt__2_i" "T5<int>::X"
7cb06c
-
7cb06c
-    test_demangling "arm: g__FdCdT1" \
7cb06c
-	"g\[(\]+double, (const double|double const), double\[)\]+"
7cb06c
-    test_demangling "arm: g__FfCfT1" \
7cb06c
-	"g\[(\]+float, (const float|float const), float\[)\]+"
7cb06c
-    test_demangling "arm: g__FlClT1" \
7cb06c
-	"g\[(\]+long, (const long|long const), long\[)\]+"
7cb06c
-    test_demangling "arm: g__FiCiT1" \
7cb06c
-	"g\[(\]+int, (const int|int const), int\[)\]+"
7cb06c
-    test_demangling "arm: g__FsCsT1" \
7cb06c
-	"g\[(\]+short, (const short|short const), short\[)\]+"
7cb06c
-    test_demangling "arm: g__FcCcT1" \
7cb06c
-	"g\[(\]+char, (const char|char const), char\[)\]+"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__17T5__pt__8_PFcPv_iFi" "T5<int (*)(char, void *)>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: f__FicdPc" "f(int, char, double, char *)"
7cb06c
-    test_demangling_exact "arm: __nw__FUi" "operator new(unsigned int)"
7cb06c
-    test_demangling_exact "arm: __ct__Q3_2T11a1bSFi" "T1::a::b::b(int) static"
7cb06c
-    test_demangling_exact "arm: __dt__Q3_2T11a1bSFi" "T1::a::b::~b(int) static"
7cb06c
-    test_demangling_exact "arm: put__Q3_2T11a1bSFi" "T1::a::b::put(int) static"
7cb06c
-    test_demangling_exact "arm: get__Q2_2T11aSFv" "T1::a::get(void) static"
7cb06c
-    test_demangling_exact "arm: put__2T1SFi" "T1::put(int) static"
7cb06c
-    test_demangling_exact "arm: put__Q5_2T11a1b1c1dSFi" "T1::a::b::c::d::put(int) static"
7cb06c
-    test_demangling_exact "arm: get__Q4_2T11a1b1cSFv" "T1::a::b::c::get(void) static"
7cb06c
-    test_demangling_exact "arm: put__Q2_2T11aSFi" "T1::a::put(int) static"
7cb06c
-    test_demangling_exact "arm: put__Q4_2T11a1b1cSFi" "T1::a::b::c::put(int) static"
7cb06c
-    test_demangling_exact "arm: get__Q3_2T11a1bSFv" "T1::a::b::get(void) static"
7cb06c
-    test_demangling_exact "arm: get__2T1SFv" "T1::get(void) static"
7cb06c
-    test_demangling_exact "arm: get__Q5_2T11a1b1c1dSFv" "T1::a::b::c::d::get(void) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__11T1__pt__2_cFv" "T1<char>::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dt__12T1__pt__3_1tFv" "T1<t>::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__12T1__pt__3_1tSFPv" "T1<t>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__11T1__pt__2_cFi" "T1<char>::T1(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__11T1__pt__2_cFv" "T1<char>::T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__12T1__pt__3_1tFi" "T1<t>::T1(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__12T1__pt__3_1tFv" "T1<t>::T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __dl__11T1__pt__2_cSFPv" "T1<char>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: bar__3fooFPv"       "foo::bar(void *)"
7cb06c
-    test_demangling "arm: bar__3fooFPCv" \
7cb06c
-	     "foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "arm: bar__3fooCFPv"      "foo::bar(void *) const"
7cb06c
-    test_demangling "arm: bar__3fooCFPCv" \
7cb06c
-	    "foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+ const"
7cb06c
-    test_demangling_exact "arm: __eq__3fooFR3foo"   "foo::operator==(foo &)"
7cb06c
-    test_demangling "arm: __eq__3fooFRC3foo" \
7cb06c
-	 "foo::operator==\[(\]+(const foo|foo const) &\[)\]+"
7cb06c
-    test_demangling_exact "arm: __eq__3fooCFR3foo"  "foo::operator==(foo &) const"
7cb06c
-    test_demangling "arm: __eq__3fooCFRC3foo" \
7cb06c
-	"foo::operator==\[(\]+(const foo|foo const) &\[)\]+ const"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: elem__15vector__pt__2_dFi" "vector<double>::elem(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: elem__15vector__pt__2_iFi" "vector<int>::elem(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__15vector__pt__2_dFi" "vector<double>::vector(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__15vector__pt__2_iFi" "vector<int>::vector(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: __ct__25DListNode__pt__9_R6RLabelFR6RLabelP25DListNode__pt__9_R6RLabelT2" \
7cb06c
-	"DListNode<RLabel &>::DListNode(RLabel &, DListNode<RLabel &> *, DListNode<RLabel &> *)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: bar__3fooFiT16FooBar" "foo::bar(int, int, FooBar)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: bar__3fooFPiN51PdN37PcN211T1iN215" \
7cb06c
-      "foo::bar(int *, int *, int *, int *, int *, int *, double *, double *, double *, double *, char *, char *, char *, int *, int, int, int)"
7cb06c
-
7cb06c
-    test_demangling_exact "arm: _Utf390_1__1_9223372036854775807__9223372036854775" \
7cb06c
-	    "Can't demangle \"_Utf390_1__1_9223372036854775807__9223372036854775\""
7cb06c
-}
7cb06c
-
7cb06c
-proc test_hp_style_demangling {} {
7cb06c
-
7cb06c
-    # HP aCC mangling style is based on ARM for all the basic stuff,
7cb06c
-    # so first we use some of the ARM tests here.  Later we have HP-specific
7cb06c
-    # tests.
7cb06c
-        
7cb06c
-    test_demangling "hp: g__FP1cPC1cT1" \
7cb06c
-	"g\[(\]+c *\[*\]+, (const c|c const) *\[*\]+, c *\[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FPUlPCUlT1" \
7cb06c
-	"g\[(\]+unsigned long \[*\]+, (const unsigned long|unsigned long const) \[*\]+, unsigned long \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FPUiPCUiT1" \
7cb06c
-	"g\[(\]+unsigned int \[*\]+, (const unsigned int|unsigned int const) \[*\]+, unsigned int \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FPUsPCUsT1" \
7cb06c
-	"g\[(\]+unsigned short \[*\]+, (const unsigned short|unsigned short const) \[*\]+, unsigned short \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FPUcPCUcT1" \
7cb06c
-	"g\[(\]+unsigned char \[*\]+, (const unsigned char|unsigned char const) \[*\]+, unsigned char \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TPlPClT2" \
7cb06c
-	"g\[(\]+T, long \[*\]+, (const long|long const) \[*\]+, long \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRlRClT2" \
7cb06c
-	"g\[(\]+R, long &, (const long|long const) &, long &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TPiPCiT2" \
7cb06c
-	"g\[(\]+T, int \[*\]+, (const int|int const) \[*\]+, int \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRiRCiT2" \
7cb06c
-	"g\[(\]+R, int &, (const int|int const) &, int &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TPsPCsT2" \
7cb06c
-	"g\[(\]+T, short \[*\]+, (const short|short const) \[*\]+, short \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRsRCsT2" \
7cb06c
-	"g\[(\]+R, short &, (const short|short const) &, short &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TPcPCcT2" \
7cb06c
-	"g\[(\]+T, char \[*\]+, (const char|char const) \[*\]+, char \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRcRCcT2" \
7cb06c
-	"g\[(\]+R, char &, (const char|char const) &, char &\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "hp: __gt__FRC2T2c" \
7cb06c
-	"operator>\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "hp: __ge__FRC2T2c" \
7cb06c
-	"operator>=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "hp: __lt__FRC2T2c" \
7cb06c
-	"operator<\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "hp: __le__FRC2T2c" \
7cb06c
-	"operator<=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "hp: __ne__FRC2T2c" \
7cb06c
-	"operator!=\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling "hp: __eq__FRC2T2c" \
7cb06c
-	"operator==\[(\]+(const T2|T2 const) &, char\[)\]+"
7cb06c
-    test_demangling_exact "hp: __amd__FR2T2i" "operator%=(T2 &, int)"
7cb06c
-    test_demangling_exact "hp: __adv__FR2T2i" "operator/=(T2 &, int)"
7cb06c
-    test_demangling_exact "hp: __amu__FR2T2i" "operator*=(T2 &, int)"
7cb06c
-    test_demangling_exact "hp: __ami__FR2T2i" "operator-=(T2 &, int)"
7cb06c
-    test_demangling_exact "hp: __apl__FR2T2i" "operator+=(T2 &, int)"
7cb06c
-    test_demangling_exact "hp: __nw__2T1SFUi" "T1::operator new(unsigned int) static"
7cb06c
-    test_demangling_exact "hp: __dl__2T1SFPv" "T1::operator delete(void *) static"
7cb06c
-    test_demangling_exact "hp: put__2T7SFi" "T7::put(int) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: h__FUc" "h(unsigned char)"
7cb06c
-    test_demangling_exact "hp: f__Fic" "f(int, char)"
7cb06c
-    test_demangling_exact "hp: h__FUi" "h(unsigned int)"
7cb06c
-    test_demangling_exact "hp: h__Fci" "h(char, int)"
7cb06c
-    test_demangling_exact "hp: h__FUl" "h(unsigned long)"
7cb06c
-    test_demangling_exact "hp: h__Fcl" "h(char, long)"
7cb06c
-    test_demangling_exact "hp: h__FUs" "h(unsigned short)"
7cb06c
-    test_demangling_exact "hp: h__Fcs" "h(char, short)"
7cb06c
-    test_demangling "hp: __amd__FR2T2RC2T2" \
7cb06c
-	"operator%=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __adv__FR2T2RC2T2" \
7cb06c
-	"operator/=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __amu__FR2T2RC2T2" \
7cb06c
-	"operator\[*\]+=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __ami__FR2T2RC2T2" \
7cb06c
-	"operator-=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __apl__FR2T2RC2T2" \
7cb06c
-	"operator\[+\]+=\[(\]+T2 &, (const T2|T2 const) &\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "hp: g__F1SRPUlRPCUlT2" \
7cb06c
-	"g\[(\]+S, unsigned long \[*\]+&, (const unsigned long|unsigned long const) \[*\]+&, unsigned long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPUiRPCUiT2" \
7cb06c
-	"g\[(\]+S, unsigned int \[*\]+&, (const unsigned int|unsigned int const) \[*\]+&, unsigned int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPUsRPCUsT2" \
7cb06c
-	"g\[(\]+S, unsigned short \[*\]+&, (const unsigned short|unsigned short const) \[*\]+&, unsigned short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPUcRPCUcT2" \
7cb06c
-	"g\[(\]+S, unsigned char \[*\]+&, (const unsigned char|unsigned char const) \[*\]+&, unsigned char \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1SRPlRPClT3" \
7cb06c
-	"g\[(\]+T, S, long \[*\]+&, (const long|long const) \[*\]+&, long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1SRPiRPCiT3" \
7cb06c
-	"g\[(\]+T, S, int \[*\]+&, (const int|int const) \[*\]+&, int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1SRPcRPCcT3" \
7cb06c
-	"g\[(\]+T, S, char \[*\]+&, (const char|char const) \[*\]+&, char \[*\]+&\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling "hp: __gt__FRC2T2T1" \
7cb06c
-	"operator>\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __ge__FRC2T2T1" \
7cb06c
-	"operator>=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __lt__FRC2T2T1" \
7cb06c
-	"operator<\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __le__FRC2T2T1" \
7cb06c
-	"operator<=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __ne__FRC2T2T1" \
7cb06c
-	"operator!=\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __eq__FRC2T2T1" \
7cb06c
-	"operator==\[(\]+(const T2|T2 const) &, (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: g__FcR1cRC1cT2" \
7cb06c
-	"g\[(\]+char, c &, (const c|c const) &, c &\[)\]+"
7cb06c
-    test_demangling "hp: g__FcRPdRPCdT2" \
7cb06c
-	"g\[(\]+char, double *\[*\]+&, (const double|double const) *\[*\]+&, double *\[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__FcRPfRPCfT2" \
7cb06c
-	"g\[(\]+char, float *\[*\]+&, (const float|float const) *\[*\]+&, float *\[*\]+&\[)\]+"
7cb06c
-    test_demangling_exact "hp: h__FcT1" "h(char, char)"
7cb06c
-    test_demangling_exact "hp: f__Ficd" "f(int, char, double)"
7cb06c
-    test_demangling "hp: g__F1T1SdRPsRPCsT4" \
7cb06c
-	"g\[(\]+T, S, double, short \[*\]+&, (const short|short const) \[*\]+&, short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1cC1cT1" \
7cb06c
-	"g\[(\]+c, (const c|c const), c\[)\]+"
7cb06c
-    test_demangling "hp: g__FPdPCdT1" \
7cb06c
-	"g\[(\]+double *\[*\]+, (const double|double const) *\[*\]+, double *\[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FPfPCfT1" \
7cb06c
-	"g\[(\]+float *\[*\]+, (const float|float const) *\[*\]+, float *\[*\]+\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "hp: g__FUlCUlT1" \
7cb06c
-	"g\[(\]+unsigned long, (const unsigned long|unsigned long const), unsigned long\[)\]+"
7cb06c
-    test_demangling "hp: g__FPlPClT1" \
7cb06c
-	"g\[(\]+long \[*\]+, (const long|long const) \[*\]+, long \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FUiCUiT1" \
7cb06c
-	"g\[(\]+unsigned int, (const unsigned int|unsigned int const), unsigned int\[)\]+"
7cb06c
-    test_demangling "hp: g__FPiPCiT1" \
7cb06c
-	"g\[(\]+int \[*\]+, (const int|int const) \[*\]+, int \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FUsCUsT1" \
7cb06c
-	"g\[(\]+unsigned short, (const unsigned short|unsigned short const), unsigned short\[)\]+"
7cb06c
-    test_demangling "hp: g__FPsPCsT1" \
7cb06c
-	"g\[(\]+short \[*\]+, (const short|short const) \[*\]+, short \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__FUcCUcT1" \
7cb06c
-	"g\[(\]+unsigned char, (const unsigned char|unsigned char const), unsigned char\[)\]+"
7cb06c
-    test_demangling "hp: g__FPcPCcT1" \
7cb06c
-	"g\[(\]+char \[*\]+, (const char|char const) \[*\]+, char \[*\]+\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TlClT2" \
7cb06c
-	"g\[(\]+T, long, (const long|long const), long\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TiCiT2" \
7cb06c
-	"g\[(\]+T, int, (const int|int const), int\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TsCsT2" \
7cb06c
-	"g\[(\]+T, short, (const short|short const), short\[)\]+"
7cb06c
-    test_demangling "hp: g__F1TcCcT2" \
7cb06c
-	"g\[(\]+T, char, (const char|char const), char\[)\]+"
7cb06c
-
7cb06c
-    test_demangling "hp: printf__FPCce" \
7cb06c
-	"printf\[(\]+(const char|char const) \[*\]+,...\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling "hp: g__F1SRUlRCUlT2" \
7cb06c
-	"g\[(\]+S, unsigned long &, (const unsigned long|unsigned long const) &, unsigned long &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPlRPClT2" \
7cb06c
-	"g\[(\]+S, long \[*\]+&, (const long|long const) \[*\]+&, long \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRUiRCUiT2" \
7cb06c
-	"g\[(\]+R, unsigned int &, (const unsigned int|unsigned int const) &, unsigned int &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPiRPCiT2" \
7cb06c
-	"g\[(\]+S, int \[*\]+&, (const int|int const) \[*\]+&, int \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRUsRCUsT2" \
7cb06c
-	"g\[(\]+R, unsigned short &, (const unsigned short|unsigned short const) &, unsigned short &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPsRPCsT2" \
7cb06c
-	"g\[(\]+S, short \[*\]+&, (const short|short const) \[*\]+&, short \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1RRUcRCUcT2" \
7cb06c
-	"g\[(\]+R, unsigned char &, (const unsigned char|unsigned char const) &, unsigned char &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1SRPcRPCcT2" \
7cb06c
-	"g\[(\]+S, char \[*\]+&, (const char|char const) \[*\]+&, char \[*\]+&\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1RRlRClT3" \
7cb06c
-	"g\[(\]+T, R, long &, (const long|long const) &, long &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1RRiRCiT3" \
7cb06c
-	"g\[(\]+T, R, int &, (const int|int const) &, int &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1RRsRCsT3" \
7cb06c
-	"g\[(\]+T, R, short &, (const short|short const) &, short &\[)\]+"
7cb06c
-    test_demangling "hp: g__F1T1RRcRCcT3" \
7cb06c
-	"g\[(\]+T, R, char &, (const char|char const) &, char &\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling_exact "hp: f__FicdPcPFci_v" "f(int, char, double, char *, void (*)(char, int))"
7cb06c
-    test_demangling_exact "hp: f__FicdPcPFic_v" "f(int, char, double, char *, void (*)(int, char))"
7cb06c
-    test_demangling_exact "hp: get__2T7SFv" "T7::get(void) static"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling "hp: g__FcRdRCdT2" \
7cb06c
-	"g\[(\]+char, double &, (const double|double const) &, double &\[)\]+"
7cb06c
-    test_demangling "hp: g__FcRfRCfT2" \
7cb06c
-	"g\[(\]+char, float &, (const float|float const) &, float &\[)\]+"
7cb06c
-    test_demangling "hp: __md__FC2T2i" \
7cb06c
-	"operator%\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "hp: __dv__FC2T2i" \
7cb06c
-	"operator/\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "hp: __ml__FC2T2i" \
7cb06c
-	"operator\[*\]+\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "hp: __mi__FC2T2i" \
7cb06c
-	"operator-\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-    test_demangling "hp: __pl__FC2T2i" \
7cb06c
-	"operator\[+\]+\[(\]+(const T2|T2 const), int\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling_exact "hp: h__Fc" "h(char)"
7cb06c
-    test_demangling_exact "hp: h__Fd" "h(double)"
7cb06c
-    test_demangling_exact "hp: h__Ff" "h(float)"
7cb06c
-    test_demangling_exact "hp: h__Fi" "h(int)"
7cb06c
-    test_demangling_exact "hp: f__Fi" "f(int)"
7cb06c
-    test_demangling_exact "hp: h__Fl" "h(long)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: h__Fs" "h(short)"
7cb06c
-    test_demangling "hp: __md__FC2T2RC2T2" \
7cb06c
-	"operator%\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __dv__FC2T2RC2T2" \
7cb06c
-	"operator/\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __ml__FC2T2RC2T2" \
7cb06c
-	"operator\[*\]+\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __mi__FC2T2RC2T2" \
7cb06c
-	"operator-\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: __pl__FC2T2RC2T2" \
7cb06c
-	"operator\[+\]+\[(\]+(const T2|T2 const), (const T2|T2 const) &\[)\]+"
7cb06c
-    test_demangling "hp: g__FcRP1cRPC1cT2" \
7cb06c
-	"g\[(\]+char, c *\[*\]+&, (const c|c const) *\[*\]+&, c *\[*\]+&\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling "hp: g__FdCdT1" \
7cb06c
-	"g\[(\]+double, (const double|double const), double\[)\]+"
7cb06c
-    test_demangling "hp: g__FfCfT1" \
7cb06c
-	"g\[(\]+float, (const float|float const), float\[)\]+"
7cb06c
-    test_demangling "hp: g__FlClT1" \
7cb06c
-	"g\[(\]+long, (const long|long const), long\[)\]+"
7cb06c
-    test_demangling "hp: g__FiCiT1" \
7cb06c
-	"g\[(\]+int, (const int|int const), int\[)\]+"
7cb06c
-    test_demangling "hp: g__FsCsT1" \
7cb06c
-	"g\[(\]+short, (const short|short const), short\[)\]+"
7cb06c
-    test_demangling "hp: g__FcCcT1" \
7cb06c
-	"g\[(\]+char, (const char|char const), char\[)\]+"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling_exact "hp: f__FicdPc" "f(int, char, double, char *)"
7cb06c
-    test_demangling_exact "hp: __nw__FUi" "operator new(unsigned int)"
7cb06c
-    test_demangling_exact "hp: __ct__Q3_2T11a1bSFi" "T1::a::b::b(int) static"
7cb06c
-    test_demangling_exact "hp: __dt__Q3_2T11a1bSFi" "T1::a::b::~b(int) static"
7cb06c
-    test_demangling_exact "hp: put__Q3_2T11a1bSFi" "T1::a::b::put(int) static"
7cb06c
-    test_demangling_exact "hp: get__Q2_2T11aSFv" "T1::a::get(void) static"
7cb06c
-    test_demangling_exact "hp: put__2T1SFi" "T1::put(int) static"
7cb06c
-    test_demangling_exact "hp: put__Q5_2T11a1b1c1dSFi" "T1::a::b::c::d::put(int) static"
7cb06c
-    test_demangling_exact "hp: get__Q4_2T11a1b1cSFv" "T1::a::b::c::get(void) static"
7cb06c
-    test_demangling_exact "hp: put__Q2_2T11aSFi" "T1::a::put(int) static"
7cb06c
-    test_demangling_exact "hp: put__Q4_2T11a1b1cSFi" "T1::a::b::c::put(int) static"
7cb06c
-    test_demangling_exact "hp: get__Q3_2T11a1bSFv" "T1::a::b::get(void) static"
7cb06c
-    test_demangling_exact "hp: get__2T1SFv" "T1::get(void) static"
7cb06c
-    test_demangling_exact "hp: get__Q5_2T11a1b1c1dSFv" "T1::a::b::c::d::get(void) static"
7cb06c
-
7cb06c
-
7cb06c
-    test_demangling_exact "hp: bar__3fooFPv"       "foo::bar(void *)"
7cb06c
-    test_demangling "hp: bar__3fooFPCv" \
7cb06c
-	     "foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+"
7cb06c
-    test_demangling_exact "hp: bar__3fooCFPv"      "foo::bar(void *) const"
7cb06c
-    test_demangling "hp: bar__3fooCFPCv" \
7cb06c
-	    "foo::bar\[(\]+(const void|void const) *\[*\]+\[)\]+ const"
7cb06c
-    test_demangling_exact "hp: __eq__3fooFR3foo"   "foo::operator==(foo &)"
7cb06c
-    test_demangling "hp: __eq__3fooFRC3foo" \
7cb06c
-	 "foo::operator==\[(\]+(const foo|foo const) &\[)\]+"
7cb06c
-    test_demangling_exact "hp: __eq__3fooCFR3foo"  "foo::operator==(foo &) const"
7cb06c
-    test_demangling "hp: __eq__3fooCFRC3foo" \
7cb06c
-	"foo::operator==\[(\]+(const foo|foo const) &\[)\]+ const"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: bar__3fooFiT16FooBar" "foo::bar(int, int, FooBar)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: bar__3fooFPiN51PdN37PcN211T1iN215" \
7cb06c
-      "foo::bar(int *, int *, int *, int *, int *, int *, double *, double *, double *, double *, char *, char *, char *, int *, int, int, int)"
7cb06c
-
7cb06c
-
7cb06c
-    # HP aCC specific tests. HP aCC demangling does not use __pt__ for
7cb06c
-    # template specifications.  There are other differences as well.
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T5XTPFiPPdPv_i__Fv" "T5<int (*)(int, double **, void *)>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__1cFi" "c::c(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T5XTi__Fv" "T5<int>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T5XTc__Fv" "T5<char>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T2Fi" "T2::T2(int)"
7cb06c
-    test_demangling_exact "hp: __dt__2T1Fv" "T1::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T5XT1x__Fv" "T5<x>::~T5(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T5XTPFcPv_i__Fv" "T5<int (*)(char, void *)>::~T5(void)"
7cb06c
-    
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTPFiPPdPv_i__Fi" "T5<int (*)(int, double **, void *)>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T5XT1x__SFPv" "T5<x>::operator delete(void *) static"
7cb06c
-    
7cb06c
-    test_demangling_exact "hp: X__2T5XT1x" "T5<x>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTi__Fi" "T5<int>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTc__Fi" "T5<char>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T5XTPFcPv_i__SFPv" "T5<int (*)(char, void *)>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: X__2T5XTPFcPv_i" "T5<int (*)(char, void *)>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T5XT1x__Fi" "T5<x>::T5(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T5XTPFiPPdPv_i__SFPv" "T5<int (*)(int, double **, void *)>::operator delete(void *) static"
7cb06c
-    test_demangling_exact "hp: X__2T5XTPFiPPdPv_i" "T5<int (*)(int, double **, void *)>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T5XTi__SFPv" "T5<int>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T5XTc__SFPv" "T5<char>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: X__2T5XTc" "T5<char>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: X__2T5XTi" "T5<int>::X"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTPFcPv_i__Fi" "T5<int (*)(char, void *)>::T5(int)"
7cb06c
-    
7cb06c
-    test_demangling_exact "hp: __dt__2T1XTc__Fv" "T1<char>::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dt__2T1XT1t__Fv" "T1<t>::~T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T1XT1t__SFPv" "T1<t>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T1XTc__Fi" "T1<char>::T1(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T1XTc__Fv" "T1<char>::T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T1XT1t__Fi" "T1<t>::T1(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T1XT1t__Fv" "T1<t>::T1(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __dl__2T1XTc__SFPv" "T1<char>::operator delete(void *) static"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTd__Fi" "vector<double>::elem(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTi__Fi" "vector<int>::elem(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__6vectorXTd__Fi" "vector<double>::vector(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__6vectorXTi__Fi" "vector<int>::vector(int)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__9DListNodeXTR6RLabel__FR6RLabelP9DListNodeXTR6RLabel_T2" \
7cb06c
-	"DListNode<RLabel &>::DListNode(RLabel &, DListNode<RLabel &> *, DListNode<RLabel &> *)"
7cb06c
-
7cb06c
-
7cb06c
-    # Absolute integer constants in template args
7cb06c
-
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiUP34__Fi" "vector<int,34U>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXUP2701Td__Fi" "vector<2701U,double>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSP334__Fi" "vector<int,334>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSN67__Fi" "vector<int,-67>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSM__SCFPPd" "vector<int,-2147483648>::elem(double **) static const"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSN67UP4000TRs__Fi" "vector<int,-67,4000U,short &>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSN67TRdTFPv_i__Fi" "vector<int,-67,double &,int (void *)>::elem(int)"
7cb06c
-    test_demangling_exact "hp: X__6vectorXTiSN67TdTPvUP5TRs" "vector<int,-67,double,void *,5U,short &>::X"
7cb06c
-
7cb06c
-    # Named constants in template args
7cb06c
-
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiA3foo__Fi" "vector<int,&foo>::elem(int)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiA3fooTPvA5Label__FiPPvT2" "vector<int,&foo,void *,&Label>::elem(int, void **, void **)"
7cb06c
-    test_demangling_exact "hp: elem__6vectorXTiSN42A3foo__Fi" "vector<int,-42,&foo>::elem(int)"
7cb06c
-
7cb06c
-    # Alternate entry points for functions
7cb06c
-
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTPFcPv_i__Fi_2" "T5<int (*)(char, void *)>::T5(int)"
7cb06c
-    test_demangling_exact "hp: __ct__2T5XTPFcPv_i__Fi_19" "T5<int (*)(char, void *)>::T5(int)"
7cb06c
-    test_demangling_exact "hp: f__FicdPcPFci_v_34" "f(int, char, double, char *, void (*)(char, int))"
7cb06c
-
7cb06c
-
7cb06c
-    # Template partial specializations
7cb06c
-
7cb06c
-# FIXME!  The # characters don't go through expect, and backslashes don't seem to work.
7cb06c
-#    test_demangling_exact "hp: spec__13Spec<#1,#1.*>XTiTPi_FPi" "Spec<int,int *>::spec(int *)"
7cb06c
-#    test_demangling_exact "hp: spec__16Spec<#1,#1.&,#1>XTiTRiTi_FPi" "Spec<int,int &, int>::spec(int *)"
7cb06c
-# Fake test -- replace # with %
7cb06c
-    test_demangling_exact "hp: spec__13Spec<%1,%1.*>XTiTPi_FPi" "Spec<int,int *>::spec(int *)"
7cb06c
-    test_demangling_exact "hp: spec__16Spec<%1,%1.&,%1>XTiTRiTi_FPi" "Spec<int,int &,int>::spec(int *)"
7cb06c
-
7cb06c
-    # Global template functions
7cb06c
-
7cb06c
-    test_demangling_exact "hp: add__XTc_FcT1" "add<char>(char, char)"
7cb06c
-    test_demangling_exact "hp: add__XTcSP9A5label_FcPPlT1" "add<char,9,&label>(char, long **, char)"
7cb06c
-    test_demangling_exact "hp: add__XTPfTFPd_f_FcT1" "add<float *,float (double *)>(char, char)"
7cb06c
-
7cb06c
-    # Template for template arg
7cb06c
-
7cb06c
-    test_demangling_exact "hp: unLink__12basic_stringXTcT18string_char_traitsXTc_T9allocator_Fv" "basic_string<char,string_char_traits<char>,allocator>::unLink(void)"
7cb06c
-
7cb06c
-    test_demangling_exact "hp: _Utf390_1__1_9223372036854775807__9223372036854775" \
7cb06c
-	    "Can't demangle \"_Utf390_1__1_9223372036854775807__9223372036854775\""
7cb06c
-}
7cb06c
-
7cb06c
-
7cb06c
 proc catch_demangling_errors {command} {
7cb06c
     if {[catch $command result]} {
7cb06c
 	puts "ERROR: demangle.exp: while running $command: $result"
7cb06c
@@ -1593,10 +183,7 @@ proc do_tests {} {
7cb06c
     # Using catch_demangling_errors this way ensures that, if one of
7cb06c
     # the functions raises a Tcl error, then it'll get reported, and
7cb06c
     # the rest of the functions will still run.
7cb06c
-    catch_demangling_errors test_lucid_style_demangling
7cb06c
-    catch_demangling_errors test_gnu_style_demangling
7cb06c
-    catch_demangling_errors test_arm_style_demangling
7cb06c
-    catch_demangling_errors test_hp_style_demangling
7cb06c
+    catch_demangling_errors test_gnuv3_style_demangling
7cb06c
 
7cb06c
     # Verify specifying demangle language.
7cb06c
     gdb_test_no_output "set language unknown"
7cb06c
diff --git a/gdb/valops.c b/gdb/valops.c
7cb06c
--- a/gdb/valops.c
7cb06c
+++ b/gdb/valops.c
7cb06c
@@ -2013,23 +2013,12 @@ search_struct_method (const char *name, struct value **arg1p,
7cb06c
   int i;
7cb06c
   struct value *v;
7cb06c
   int name_matched = 0;
7cb06c
-  char dem_opname[64];
7cb06c
 
7cb06c
   type = check_typedef (type);
7cb06c
   for (i = TYPE_NFN_FIELDS (type) - 1; i >= 0; i--)
7cb06c
     {
7cb06c
       const char *t_field_name = TYPE_FN_FIELDLIST_NAME (type, i);
7cb06c
 
7cb06c
-      /* FIXME!  May need to check for ARM demangling here.  */
7cb06c
-      if (startswith (t_field_name, "__") ||
7cb06c
-	  startswith (t_field_name, "op") ||
7cb06c
-	  startswith (t_field_name, "type"))
7cb06c
-	{
7cb06c
-	  if (cplus_demangle_opname (t_field_name, dem_opname, DMGL_ANSI))
7cb06c
-	    t_field_name = dem_opname;
7cb06c
-	  else if (cplus_demangle_opname (t_field_name, dem_opname, 0))
7cb06c
-	    t_field_name = dem_opname;
7cb06c
-	}
7cb06c
       if (t_field_name && (strcmp_iw (t_field_name, name) == 0))
7cb06c
 	{
7cb06c
 	  int j = TYPE_FN_FIELDLIST_LENGTH (type, i) - 1;
7cb06c
@@ -3435,19 +3424,7 @@ value_struct_elt_for_reference (struct type *domain, LONGEST offset,
7cb06c
   for (i = TYPE_NFN_FIELDS (t) - 1; i >= 0; --i)
7cb06c
     {
7cb06c
       const char *t_field_name = TYPE_FN_FIELDLIST_NAME (t, i);
7cb06c
-      char dem_opname[64];
7cb06c
 
7cb06c
-      if (startswith (t_field_name, "__") 
7cb06c
-	  || startswith (t_field_name, "op") 
7cb06c
-	  || startswith (t_field_name, "type"))
7cb06c
-	{
7cb06c
-	  if (cplus_demangle_opname (t_field_name, 
7cb06c
-				     dem_opname, DMGL_ANSI))
7cb06c
-	    t_field_name = dem_opname;
7cb06c
-	  else if (cplus_demangle_opname (t_field_name, 
7cb06c
-					  dem_opname, 0))
7cb06c
-	    t_field_name = dem_opname;
7cb06c
-	}
7cb06c
       if (t_field_name && strcmp (t_field_name, name) == 0)
7cb06c
 	{
7cb06c
 	  int j;