mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-01 06:14:47 +08:00
gdb: remove TYPE_VARARGS
gdb/ChangeLog: * gdbtypes.h (TYPE_VARARGS): Remove, replace all uses with type::has_varargs. Change-Id: Ieea4a64b4bfa4b8be643e68cb403081881133740
This commit is contained in:
@ -279,7 +279,7 @@ cp_type_print_method_args (struct type *mtype, const char *prefix,
|
||||
{
|
||||
struct field *args = mtype->fields ();
|
||||
int nargs = mtype->num_fields ();
|
||||
int varargs = TYPE_VARARGS (mtype);
|
||||
int varargs = mtype->has_varargs ();
|
||||
int i;
|
||||
|
||||
fprintf_symbol_filtered (stream, prefix,
|
||||
@ -591,12 +591,12 @@ c_type_print_args (struct type *type, struct ui_file *stream,
|
||||
printed_any = 1;
|
||||
}
|
||||
|
||||
if (printed_any && TYPE_VARARGS (type))
|
||||
if (printed_any && type->has_varargs ())
|
||||
{
|
||||
/* Print out a trailing ellipsis for varargs functions. Ignore
|
||||
TYPE_VARARGS if the function has no named arguments; that
|
||||
represents unprototyped (K&R style) C functions. */
|
||||
if (printed_any && TYPE_VARARGS (type))
|
||||
if (printed_any && type->has_varargs ())
|
||||
{
|
||||
fprintf_filtered (stream, ", ");
|
||||
wrap_here (" ");
|
||||
|
Reference in New Issue
Block a user