nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 26 lines 936 B view raw
1Backported patch originally targeted against 2.45. 2--- a/binutils/debug.c 3+++ b/binutils/debug.c 4@@ -2554,9 +2554,6 @@ debug_write_type (struct debug_handle *info, 5 case DEBUG_KIND_UNION_CLASS: 6 return debug_write_class_type (info, fns, fhandle, type, tag); 7 case DEBUG_KIND_ENUM: 8- if (type->u.kenum == NULL) 9- return (*fns->enum_type) (fhandle, tag, (const char **) NULL, 10- (bfd_signed_vma *) NULL); 11 return (*fns->enum_type) (fhandle, tag, type->u.kenum->names, 12 type->u.kenum->values); 13 case DEBUG_KIND_POINTER: 14@@ -3097,9 +3094,9 @@ debug_type_samep (struct debug_handle *info, struct debug_type_s *t1, 15 break; 16 17 case DEBUG_KIND_ENUM: 18- if (t1->u.kenum == NULL) 19- ret = t2->u.kenum == NULL; 20- else if (t2->u.kenum == NULL) 21+ if (t1->u.kenum->names == NULL) 22+ ret = t2->u.kenum->names == NULL; 23+ else if (t2->u.kenum->names == NULL) 24 ret = false; 25 else 26 {