/* Support for printing C and C++ types for GDB, the GNU debugger.
- Copyright 1986, 1988, 1989, 1991, 1993, 1994, 1995, 1996
+ Copyright 1986, 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1998, 1999
Free Software Foundation, Inc.
This file is part of GDB.
/* Flag indicating target was compiled by HP compiler */
extern int hp_som_som_object_present;
-static void
-c_type_print_args PARAMS ((struct type *, GDB_FILE *));
+static void cp_type_print_method_args PARAMS ((struct type **args, char *prefix, char *varstring, int staticp, GDB_FILE *stream));
static void
-c_type_print_varspec_suffix PARAMS ((struct type *, GDB_FILE *, int, int, int));
+c_type_print_args PARAMS ((struct type *, GDB_FILE *));
static void
cp_type_print_derivation_info PARAMS ((GDB_FILE *, struct type *));
}
/* Print the C++ method arguments ARGS to the file STREAM. */
-void
+static void
cp_type_print_method_args (args, prefix, varstring, staticp, stream)
struct type **args;
char *prefix;
needed after the variable name (to describe its type).
Args work like c_type_print_varspec_prefix. */
-static void
+void
c_type_print_varspec_suffix (type, stream, show, passed_a_ptr, demangled_args)
struct type *type;
GDB_FILE *stream;
char *p;
char *demangled_no_class = demangled_name;
- while (p = strchr (demangled_no_class, ':'))
+ while ((p = strchr (demangled_no_class, ':')))
{
demangled_no_class = p;
if (*++demangled_no_class == ':')
}
fprintf_filtered (stream, "enum ");
/* Print the tag name if it exists.
- * Fix for CHFts22718 (RT): The aCC compiler emits
- * a spurious "{unnamed struct}"/"{unnamed union}"/"{unnamed enum}"
- * tag for unnamed struct/union/enum's, which we don't
- * want to print.
- */
+ The aCC compiler emits a spurious
+ "{unnamed struct}"/"{unnamed union}"/"{unnamed enum}"
+ tag for unnamed struct/union/enum's, which we don't
+ want to print. */
if (TYPE_TAG_NAME (type) != NULL &&
strncmp(TYPE_TAG_NAME(type), "{unnamed", 8))
{
case TYPE_CODE_TEMPLATE:
/* Called on "ptype t" where "t" is a template.
- * Prints the template header (with args), e.g.:
- * template <class T1, class T2> class "
- * and then merges with the struct/union/class code to
- * print the rest of the definition.
- */
+ Prints the template header (with args), e.g.:
+ template <class T1, class T2> class "
+ and then merges with the struct/union/class code to
+ print the rest of the definition. */
c_type_print_cv_qualifier (type, stream, 0, 1);
fprintf_filtered (stream, "template <");
for (i = 0; i < TYPE_NTEMPLATE_ARGS(type); i++) {
}
fprintf_filtered (stream, "> class ");
/* Yuck, factor this out to a subroutine so we can call
- * it and return to the point marked with the "goback:" label... - RT
- */
+ it and return to the point marked with the "goback:" label... - RT */
goto struct_union;
go_back:
if (TYPE_NINSTANTIATIONS(type) > 0) {
+
+
+
+
+