diff options
author | John Gilmore <gnu@cygnus> | 1992-03-27 23:56:15 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-03-27 23:56:15 +0000 |
commit | c2e4669f8cc511833f293fdc03f6d63ee442bc9c (patch) | |
tree | d944a22860d9e589d4246341ba28c2a8afc35a64 /gdb/gdbtypes.c | |
parent | 46f88c11388317086f7963b7ff3cfdd0aad48941 (diff) | |
download | gdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.zip gdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.tar.gz gdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.tar.bz2 |
Misc cleanups from code review.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 4d6eaa7..788fda8 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -79,7 +79,7 @@ lookup_pointer_type (type) TYPE_TARGET_TYPE (ptype) = type; TYPE_POINTER_TYPE (type) = ptype; - /* We assume the machine has only one representation for pointers! */ + /* FIXME, assume machine has only one representation for pointers! */ TYPE_LENGTH (ptype) = TARGET_PTR_BIT / TARGET_CHAR_BIT; TYPE_CODE (ptype) = TYPE_CODE_PTR; @@ -236,10 +236,9 @@ create_array_type (element_type, number) include the offset (that's the value of the MEMBER itself), but does include the structure type into which it points (for some reason). - FIXME: When "smashing" the type, we preserve the objfile that the + When "smashing" the type, we preserve the objfile that the old type pointed to, since we aren't changing where the type is actually - allocated. If the two types aren't associated with the same objfile, - then we are in deep-s**t anyway... */ + allocated. */ void smash_to_member_type (type, domain, to_type) @@ -262,10 +261,9 @@ smash_to_member_type (type, domain, to_type) /* Smash TYPE to be a type of method of DOMAIN with type TO_TYPE. METHOD just means `function that gets an extra "this" argument'. - FIXME: When "smashing" the type, we preserve the objfile that the + When "smashing" the type, we preserve the objfile that the old type pointed to, since we aren't changing where the type is actually - allocated. If the two types aren't associated with the same objfile, - then we are in deep-s**t anyway... */ + allocated. */ void smash_to_method_type (type, domain, to_type, args) |