contrib/gdb-7/gdb/utils.c
void
fprintf_symbol_filtered (struct ui_file *stream, char *name,
			 enum language lang, int arg_mode)
{
  char *demangled;

  if (name != NULL)
    {
      /* If user wants to see raw output, no problem.  */
      if (!demangle)
	{
	  fputs_filtered (name, stream);
	}
      else
	{
	  demangled = language_demangle (language_def (lang), name, arg_mode);
	  fputs_filtered (demangled ? demangled : name, stream);
	  if (demangled != NULL)
	    {
	      xfree (demangled);
	    }
	}
    }
}
/* fprintf_symbol_filtered attempts to demangle NAME, a symbol in language
   LANG, using demangling args ARG_MODE, and print it filtered to STREAM.
   If the name is not mangled, or the language for the name is unknown, or
   demangling is off, the name is printed in its "raw" form.  */
fprintf_symbol_filtered attempts to demangle NAME, a symbol in language
LANG, using demangling args ARG_MODE, and print it filtered to STREAM.
If the name is not mangled, or the language for the name is unknown, or
demangling is off, the name is printed in its "raw" form.
fprintf_symbol_filtered attempts to demangle NAME a symbol in language LANG using demangling args ARG_MODE and print it filtered to STREAM . If the name is not mangled or the language for the name is unknown or demangling is off the name is printed in its " raw " form .
void
fprintf_symbol_filtered (struct ui_file *stream, char *name,
			 enum language lang, int arg_mode)
{
  char *demangled;
  if (name != NULL)
    {
      if (!demangle)
	{
	  fputs_filtered (name, stream);
	}
      else
	{
	  demangled = language_demangle (language_def (lang), name, arg_mode);
	  fputs_filtered (demangled ? demangled : name, stream);
	  if (demangled != NULL)
	    {
	      xfree (demangled);
	    }
	}
    }
}
void fprintf_symbol_filtered ( struct ui_file * stream , char * name , enum language lang , int arg_mode ) { char * demangled ; if ( name != NULL ) { if ( ! demangle ) { fputs_filtered ( name , stream ) ; } else { demangled = language_demangle ( language_def ( lang ) , name , arg_mode ) ; fputs_filtered ( demangled ? demangled : name , stream ) ; if ( demangled != NULL ) { xfree ( demangled ) ; } } } }
fprintf_symbol_filtered attempts to demangle NAME, a symbol in language
LANG, using demangling args ARG_MODE, and print it filtered to STREAM.
fprintf_symbol_filtered attempts to demangle NAME a symbol in language LANG using demangling args ARG_MODE and print it filtered to STREAM .
/* If user wants to see raw output, no problem.  */