From: John Gilmore Date: Fri, 6 Dec 1991 01:32:34 +0000 (+0000) Subject: * symtab.c (check_stub_method): Must allocate two extra argument X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0a6174ae38fca8d57aefa29d6c62634388cb2fd;p=binutils-gdb.git * symtab.c (check_stub_method): Must allocate two extra argument slots (one for `this', one for arglist terminator). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 06c514aefd4..f8e2d677114 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 5 17:31:05 1991 John Gilmore (gnu at cygnus.com) + + * symtab.c (check_stub_method): Must allocate two extra argument + slots (one for `this', one for arglist terminator). + Thu Dec 5 10:51:05 1991 Fred Fish (fnf at cygnus.com) * inflow.c (child_terminal_info): Supply missing '"' character. diff --git a/gdb/symtab.c b/gdb/symtab.c index 0e1ead65022..a03f7588504 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -591,9 +591,10 @@ check_stub_method (type, i, j) p += 1; } - /* We need one more slot for the void [...] or NULL [end of arglist] */ + /* We need two more slots: one for the THIS pointer, and one for the + NULL [...] or void [end of arglist]. */ argtypes = (struct type **) obstack_alloc (symbol_obstack, - (argcount+1) * sizeof (struct type *)); + (argcount+2) * sizeof (struct type *)); p = argtypetext; argtypes[0] = lookup_pointer_type (type); argcount = 1; @@ -2905,7 +2906,7 @@ _initialize_symtab () I also think "ptype" or "whatis" is more likely to be useful (but if there is much disagreement "info types" can be fixed). */ add_info ("types", types_info, - "All types names, or those matching REGEXP."); + "All type names, or those matching REGEXP."); #if 0 add_info ("methods", methods_info,