+Mon Jan 31 18:50:41 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * objdump.c (display_target_list, display_info_table): Check that
+ the bfd of the dummy output file is not null.
+
Wed Jan 26 13:13:18 1994 David J. Mackenzie (djm@thepub.cygnus.com)
* objcopy.c (filter_bytes): New function.
bfd_target *p = bfd_target_vector[t];
bfd *abfd = bfd_openw (_DUMMY_NAME_, p->name);
+ /* It *is* possible that bfd_openw might fail; avoid the
+ tragic consequences that would otherwise ensue. */
+ if (abfd == NULL)
+ {
+ fprintf (stderr, "%s: ", program_name);
+ bfd_perror (_DUMMY_NAME_);
+ return;
+ }
bfd_set_format (abfd, bfd_object);
printf ("%s\n (header %s, data %s)\n", p->name,
p->header_byteorder_big_p ? "big endian" : "little endian",
bfd_target *p = bfd_target_vector[t];
bfd *abfd = bfd_openw (_DUMMY_NAME_, p->name);
+ /* Just in case the open failed somehow. */
+ if (abfd == NULL)
+ {
+ fprintf (stderr, "%s: ", program_name);
+ bfd_perror (_DUMMY_NAME_);
+ return;
+ }
bfd_set_format (abfd, bfd_object);
if (bfd_set_arch_mach (abfd, a, 0))
printf ("%s ", p->name);