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 | 0b3d7c6d247bf3122e84d728d05ef23f30fe4bd0 (patch) | |
tree | 4b856a5bc3a655dee137fc087b596e7c62f0f144 /gdb/mdebugread.c | |
parent | 2188cbdd51632bca507dd4ae973a6e9bc322f297 (diff) | |
download | gdb-0b3d7c6d247bf3122e84d728d05ef23f30fe4bd0.zip gdb-0b3d7c6d247bf3122e84d728d05ef23f30fe4bd0.tar.gz gdb-0b3d7c6d247bf3122e84d728d05ef23f30fe4bd0.tar.bz2 |
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 c9e3490..13c0417 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; } |