(read_indirect_string): Fix apparent typo, check dwarf_str_buffer allocation,
authorNick Clifton <nickc@redhat.com>
Thu, 17 Mar 2005 08:24:28 +0000 (08:24 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 17 Mar 2005 08:24:28 +0000 (08:24 +0000)
not dwarf_abbrev_buffer.

bfd/ChangeLog
bfd/dwarf2.c

index 606bb599a58eac4bb3f8fadc0e18f99ab70e6e32..9e049e7a9ce14f8fac09f472722d311dc422b316 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-16  Fred Fish  <fnf@specifixinc.com>
+
+       PR binutils/790
+       * dwarf2.c (read_indirect_string): Fix apparent typo, check
+       dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
+
 2005-03-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * elflink.c (elf_mark_used_section): New.
index fb5cf9f918a69c28d7b3e6a3f97ed7e8d3fb1d2a..2bd232d9da57f66e599b6566642b31c3f01eb722 100644 (file)
@@ -301,7 +301,7 @@ read_indirect_string (struct comp_unit* unit,
       sz = msec->rawsize ? msec->rawsize : msec->size;
       stash->dwarf_str_size = sz;
       stash->dwarf_str_buffer = bfd_alloc (abfd, sz);
-      if (! stash->dwarf_abbrev_buffer)
+      if (! stash->dwarf_str_buffer)
        return NULL;
 
       if (! bfd_get_section_contents (abfd, msec, stash->dwarf_str_buffer,