* stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.

(read_type): Doc fix.
* gdbtypes.c (replace_type): Doc fix.
This commit is contained in:
Jim Blandy
2002-05-04 00:21:09 +00:00
parent 2ae1c2d222
commit 13a393b0d3
3 changed files with 27 additions and 9 deletions

View File

@ -521,10 +521,10 @@ finish_cv_type (struct type *type)
/* Replace the contents of ntype with the type *type.
This function should not be necessary, but is due to quirks in the stabs
reader. This should go away. It does not handle the replacement type
being cv-qualified; it could be easily fixed to, but it should go away,
remember? */
When building recursive types, it is necessary to update a type's
definition after people already have references to it. The C
language's concept of an `incomplete type' is an acknowledgement of
this. */
void
replace_type (struct type *ntype, struct type *type)
{