diff options
author | Fred Fish <fnf@specifix.com> | 2001-12-09 21:45:26 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2001-12-09 21:45:26 +0000 |
commit | bb237757d5943be436e89544fe7b5c8c74b4264b (patch) | |
tree | d8352b8daee10be3b6715ec5929b65c28336a02f /gdb/mdebugread.c | |
parent | 22d86365d7450230aad6e3fd4745133a59041632 (diff) | |
download | gdb-bb237757d5943be436e89544fe7b5c8c74b4264b.tar.gz |
Approved by Elena Zannoni:
2001-12-09 Fred Fish <fnf@redhat.com>
* mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
rather than setting it after the type is created.
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index c9e3490a5c5..13c0417f134 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4234,8 +4234,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod if (rf == -1) { *pname = "<undefined>"; - *tpp = init_type (type_code, 0, 0, (char *) NULL, current_objfile); - TYPE_FLAGS (*tpp) |= TYPE_FLAG_STUB; + *tpp = init_type (type_code, 0, TYPE_FLAG_STUB, (char *) NULL, current_objfile); return result; } |