• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/gdb/gdb/

Lines Matching refs:type

38 /* For real-type printing in whatis_exp() */
39 extern int objectprint; /* Controls looking up an object's derived type
50 /* Print a description of a type in the format of a
52 NEW is the new name for a type TYPE. */
55 typedef_print (struct type *type, struct symbol *new, struct ui_file *stream)
57 CHECK_TYPEDEF (type);
64 type_print (type, "", stream, 0);
78 type_print (type, "", stream, 0);
83 fprintf_filtered (stream, "type ");
85 type_print (type, "", stream, 0);
94 /* Print a description of a type TYPE in the form of a declaration of a
98 of structure even if there is a type name that could be used instead.
102 type_print (struct type *type, char *varstring, struct ui_file *stream,
105 LA_PRINT_TYPE (type, varstring, stream, show, 0);
108 /* Print type of EXP, or last thing in value history if EXP == NULL.
117 struct type *real_type = NULL;
118 struct type *type;
132 type = value_type (val);
136 if (((TYPE_CODE (type) == TYPE_CODE_PTR) ||
137 (TYPE_CODE (type) == TYPE_CODE_REF))
139 (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CLASS))
144 if (TYPE_CODE (type) == TYPE_CODE_PTR)
150 else if (TYPE_CODE (type) == TYPE_CODE_CLASS)
154 printf_filtered ("type = ");
158 printf_filtered ("/* real type = ");
165 type_print (type, "", gdb_stdout, show);
181 /* TYPENAME is either the name of a type, or an expression. */
189 /* Print integral scalar data VAL, of type TYPE, onto stdio stream STREAM.
190 Used to print data from type structures in a specified type. For example,
195 FIXME: This is here simply because only the type printing routines
202 print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream)
207 CHECK_TYPEDEF (type);
209 switch (TYPE_CODE (type))
213 len = TYPE_NFIELDS (type);
216 if (TYPE_FIELD_BITPOS (type, i) == val)
223 fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
232 print_longest (stream, TYPE_UNSIGNED (type) ? 'u' : 'd', 0, val);
244 print_type_scalar (TYPE_TARGET_TYPE (type), val, stream);
263 error (_("internal error: unhandled type in print_type_scalar"));
267 error (_("Invalid type code in symbol table."));
272 /* Dump details of a type specified either directly or indirectly.
273 Uses the same sort of type lookup mechanism as ptype_command()
280 struct type *type;
290 /* The user expression names a type directly, just use that type. */
291 type = expr->elts[1].type;
295 /* The user expression may name a type indirectly by naming an
296 object of that type. Find that indirectly named type. */
298 type = value_type (val);
300 if (type != NULL)
302 recursive_dump_type (type, 0);
315 Print definition of type TYPE.\n\
316 Argument may be a type name defined by typedef, or \"struct STRUCT-TAG\"\n\
321 _("Print data type of expression EXP."));