diff options
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/debug.c b/binutils/debug.c index 5cc77f7..bb26d91 100644 --- a/binutils/debug.c +++ b/binutils/debug.c @@ -2490,7 +2490,8 @@ debug_write_type (struct debug_handle *info, return false; case DEBUG_KIND_INDIRECT: /* Prevent infinite recursion. */ - if ((*type->u.kindirect->slot)->mark == info->mark) + if (*type->u.kindirect->slot != DEBUG_TYPE_NULL + && (*type->u.kindirect->slot)->mark == info->mark) return (*fns->empty_type) (fhandle); return debug_write_type (info, fns, fhandle, *type->u.kindirect->slot, name); |