summaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2001-12-09 21:45:26 +0000
committerFred Fish <fnf@specifix.com>2001-12-09 21:45:26 +0000
commitbb237757d5943be436e89544fe7b5c8c74b4264b (patch)
treed8352b8daee10be3b6715ec5929b65c28336a02f /gdb/mdebugread.c
parent22d86365d7450230aad6e3fd4745133a59041632 (diff)
downloadgdb-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.c3
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;
}