mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* 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:
@ -1,5 +1,11 @@
|
|||||||
Wed Dec 29 12:32:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Wed Dec 29 12:32:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* stabsread.c (define_symbol): If we choose not to combine
|
* stabsread.c (define_symbol): If we choose not to combine
|
||||||
two symbols, don't just ignore the second (LOC_REGISTER) one.
|
two symbols, don't just ignore the second (LOC_REGISTER) one.
|
||||||
* printcmd.c (print_frame_args): If we have a LOC_ARG and a
|
* printcmd.c (print_frame_args): If we have a LOC_ARG and a
|
||||||
|
@ -831,7 +831,6 @@ typebase /* Implements (approximately): (type-qualifier)* type-specifier */
|
|||||||
be too. */
|
be too. */
|
||||||
| CONST_KEYWORD typebase { $$ = $2; }
|
| CONST_KEYWORD typebase { $$ = $2; }
|
||||||
| VOLATILE_KEYWORD typebase { $$ = $2; }
|
| VOLATILE_KEYWORD typebase { $$ = $2; }
|
||||||
| '.' '.' '.' { $$ = NULL; }
|
|
||||||
;
|
;
|
||||||
|
|
||||||
typename: TYPENAME
|
typename: TYPENAME
|
||||||
|
@ -988,10 +988,14 @@ check_stub_method (type, i, j)
|
|||||||
while (*p)
|
while (*p)
|
||||||
{
|
{
|
||||||
if (depth <= 0 && (*p == ',' || *p == ')'))
|
if (depth <= 0 && (*p == ',' || *p == ')'))
|
||||||
|
{
|
||||||
|
/* Avoid parsing of ellipsis, they will be handled below. */
|
||||||
|
if (strncmp (argtypetext, "...", p - argtypetext) != 0)
|
||||||
{
|
{
|
||||||
argtypes[argcount] =
|
argtypes[argcount] =
|
||||||
parse_and_eval_type (argtypetext, p - argtypetext);
|
parse_and_eval_type (argtypetext, p - argtypetext);
|
||||||
argcount += 1;
|
argcount += 1;
|
||||||
|
}
|
||||||
argtypetext = p + 1;
|
argtypetext = p + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user