diff options
author | John Gilmore <gnu@cygnus> | 1991-12-06 01:32:34 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-12-06 01:32:34 +0000 |
commit | a0a6174ae38fca8d57aefa29d6c62634388cb2fd (patch) | |
tree | f4fe6f42f2a04e137b8f00540e5826a03e65fd07 /gdb/symtab.c | |
parent | 817b8c46f84bd979d751c764ff0b30782c9542a0 (diff) | |
download | gdb-a0a6174ae38fca8d57aefa29d6c62634388cb2fd.zip gdb-a0a6174ae38fca8d57aefa29d6c62634388cb2fd.tar.gz gdb-a0a6174ae38fca8d57aefa29d6c62634388cb2fd.tar.bz2 |
* symtab.c (check_stub_method): Must allocate two extra argument
slots (one for `this', one for arglist terminator).
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 0e1ead6..a03f758 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, |