diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-23 15:52:11 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-23 15:52:11 +0000 |
commit | e552788b73b2629b9c3beb48e3b8441e1bd26ccd (patch) | |
tree | ad605e4ba7539def9a6b3a9f3c9d5b2bbde4be90 /gdb | |
parent | 2b7ac6fdb0eaf6884e7a220c3b4f1c54446d5688 (diff) | |
download | gdb-e552788b73b2629b9c3beb48e3b8441e1bd26ccd.zip gdb-e552788b73b2629b9c3beb48e3b8441e1bd26ccd.tar.gz gdb-e552788b73b2629b9c3beb48e3b8441e1bd26ccd.tar.bz2 |
* gdbtypes.h, gdbtypes.c: Add comments regarding whether static
member functions have an element in args for a (nonexistent) this
pointer.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 1 | ||||
-rw-r--r-- | gdb/gdbtypes.h | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d0266fa..2796397 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + + * gdbtypes.h, gdbtypes.c: Add comments regarding whether static + member functions have an element in args for a (nonexistent) this + pointer. + Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu) * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 12caa7a..06bada5 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -979,6 +979,7 @@ check_stub_method (type, i, j) argtypes = (struct type **) TYPE_ALLOC (type, (argcount + 2) * sizeof (struct type *)); p = argtypetext; + /* FIXME: This is wrong for static member functions. */ argtypes[0] = lookup_pointer_type (type); argcount = 1; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 50caa3c..90faea2 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -411,7 +411,8 @@ struct cplus_struct_type /* The argument list. Only valid if is_stub is clear. Contains the type of each argument, including `this', and ending with - a NULL pointer after the last argument. */ + a NULL pointer after the last argument. Should not contain + a `this' pointer for static member functions. */ struct type **args; |