* c-exp.y (DOTDOTDOT): New token.
[deliverable/binutils-gdb.git] / gdb / eval.c
index 3d434066767d82142a7d9561dccee043a7541284..13f997f5b127c87650ab9acaa18b22a4340bfc5f 100644 (file)
@@ -769,6 +769,11 @@ make_params (int num_types, struct type **param_types)
   TYPE_CODE (type) = TYPE_CODE_METHOD;
   TYPE_VPTR_FIELDNO (type) = -1;
   TYPE_CHAIN (type) = type;
+  if (num_types > 0 && param_types[num_types - 1] == NULL)
+    {
+      --num_types;
+      TYPE_VARARGS (type) = 1;
+    }
   TYPE_NFIELDS (type) = num_types;
   TYPE_FIELDS (type) = (struct field *)
     TYPE_ZALLOC (type, sizeof (struct field) * num_types);
This page took 0.025147 seconds and 4 git commands to generate.