contrib/gdb-7/gdb/linespec.c
static void
cplusplus_error (const char *name, const char *fmt, ...)
{
  struct ui_file *tmp_stream;
  char *message;

  tmp_stream = mem_fileopen ();
  make_cleanup_ui_file_delete (tmp_stream);

  {
    va_list args;

    va_start (args, fmt);
    vfprintf_unfiltered (tmp_stream, fmt, args);
    va_end (args);
  }

  while (*name == '\'')
    name++;
  fprintf_unfiltered (tmp_stream,
		      ("Hint: try '%s<TAB> or '%s<ESC-?>\n"
		       "(Note leading single quote.)"),
		      name, name);

  message = ui_file_xstrdup (tmp_stream, NULL);
  make_cleanup (xfree, message);
  throw_error (NOT_FOUND_ERROR, "%s", message);
}
/* Issue a helpful hint on using the command completion feature on
   single quoted demangled C++ symbols as part of the completion
   error.  */
Issue a helpful hint on using the command completion feature on
single quoted demangled C++ symbols as part of the completion
error.
Issue a helpful hint on using the command completion feature on single quoted demangled C ++ symbols as part of the completion error .
static void
cplusplus_error (const char *name, const char *fmt, ...)
{
  struct ui_file *tmp_stream;
  char *message;
  tmp_stream = mem_fileopen ();
  make_cleanup_ui_file_delete (tmp_stream);
  {
    va_list args;
    va_start (args, fmt);
    vfprintf_unfiltered (tmp_stream, fmt, args);
    va_end (args);
  }
  while (*name == '\'')
    name++;
  fprintf_unfiltered (tmp_stream,
		      ("Hint: try '%s<TAB> or '%s<ESC-?>\n"
		       "(Note leading single quote.)"),
		      name, name);
  message = ui_file_xstrdup (tmp_stream, NULL);
  make_cleanup (xfree, message);
  throw_error (NOT_FOUND_ERROR, "%s", message);
}
static void cplusplus_error ( const char * name , const char * fmt , ... ) { struct ui_file * tmp_stream ; char * message ; tmp_stream = mem_fileopen ( ) ; make_cleanup_ui_file_delete ( tmp_stream ) ; { va_list args ; va_start ( args , fmt ) ; vfprintf_unfiltered ( tmp_stream , fmt , args ) ; va_end ( args ) ; } while ( * name == ' \' ' ) name ++ ; fprintf_unfiltered ( tmp_stream , ( " \n " " " ) , name , name ) ; message = ui_file_xstrdup ( tmp_stream , NULL ) ; make_cleanup ( xfree , message ) ; throw_error ( NOT_FOUND_ERROR , " " , message ) ; }
Issue a helpful hint on using the command completion feature on
single quoted demangled C++ symbols as part of the completion
error.
Issue a helpful hint on using the command completion feature on single quoted demangled C ++ symbols as part of the completion error .