* c-exp.y: Revert Kung's change. "..." is not a type, and the

change caused "p (...)0" to dump core.
	* gdbtypes.c (check_stub_method): Don't pass "..." to
	parse_and_eval_type.  This should fix the bug which Kung was
	trying to fix.
This commit is contained in:
Jim Kingdon
1993-12-29 20:52:06 +00:00
parent 88b245830a
commit 393e55bac4
3 changed files with 13 additions and 4 deletions

View File

@@ -989,9 +989,13 @@ check_stub_method (type, i, j)
{
if (depth <= 0 && (*p == ',' || *p == ')'))
{
argtypes[argcount] =
parse_and_eval_type (argtypetext, p - argtypetext);
argcount += 1;
/* Avoid parsing of ellipsis, they will be handled below. */
if (strncmp (argtypetext, "...", p - argtypetext) != 0)
{
argtypes[argcount] =
parse_and_eval_type (argtypetext, p - argtypetext);
argcount += 1;
}
argtypetext = p + 1;
}