summaryrefslogtreecommitdiff
path: root/gdb/dstread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dstread.c')
-rw-r--r--gdb/dstread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dstread.c b/gdb/dstread.c
index c3a73f064cd..167b1dfd842 100644
--- a/gdb/dstread.c
+++ b/gdb/dstread.c
@@ -1308,7 +1308,7 @@ process_dst_function (struct objfile *objfile, dst_rec_ptr_t entry, char *name,
{
ftype = create_new_type (objfile);
type->function_type = ftype;
- ftype->target_type = type;
+ FUNCTION_RETURN_VALUE (ftype) = type;
ftype->code = TYPE_CODE_FUNC;
}
SYMBOL_TYPE (sym) = type->function_type;