* srec.c (pass_over): Don't skip too many characters when
authorSteve Chamberlain <sac@cygnus>
Fri, 25 Feb 1994 21:09:09 +0000 (21:09 +0000)
committerSteve Chamberlain <sac@cygnus>
Fri, 25 Feb 1994 21:09:09 +0000 (21:09 +0000)
end of line seen.

bfd/ChangeLog
bfd/srec.c

index a6b8961f2f353cec2c3f927ef7aa6a5e1617c086..ffb339b62ea1852560e32860aa3ed0668748d4fb 100644 (file)
@@ -1,3 +1,8 @@
+Fri Feb 25 12:57:00 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
+
+       * srec.c (pass_over): Don't skip too many characters when
+       end of line seen.
+
 Fri Feb 25 11:41:57 1994  Ian Lance Taylor  (ian@cygnus.com)
 
        * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
index 06432b95d6ca0927c9036a8d27ee85650bb2ed4b..5e020a20d3db08f80126231be578b7240fed8b9a 100644 (file)
@@ -224,7 +224,7 @@ fillup_symbols (abfd, buf, len, val)
          abfd->tdata.srec_data->strings = (char *) bfd_alloc (abfd, abfd->tdata.srec_data->string_size);
          if (!abfd->tdata.srec_data->symbols || !abfd->tdata.srec_data->strings)
            {
-             bfd_error = no_memory;
+             bfd_set_error (bfd_error_no_memory);
              abort ();         /* FIXME */
            }
          abfd->tdata.srec_data->symbol_idx = 0;
@@ -314,7 +314,7 @@ DEFUN (srec_mkobject, (abfd),
       tdata_type *tdata = (tdata_type *) bfd_alloc (abfd, sizeof (tdata_type));
       if (!tdata)
        {
-         bfd_error = no_memory;
+         bfd_set_error (bfd_error_no_memory);
          return false;
        }
       abfd->tdata.srec_data = tdata;
@@ -350,7 +350,6 @@ pass_over (abfd, func, symbolfunc, section)
       switch (*src)
        {
        default:
-         eof = (boolean) (bfd_read (src, 1, 1, abfd) != 1);
          if (eof)
            return;
          break;
@@ -533,7 +532,7 @@ DEFUN (srec_get_section_contents, (abfd, section, location, offset, count),
       section->used_by_bfd = (PTR) bfd_alloc (abfd, section->_raw_size);
       if (!section->used_by_bfd)
        {
-         bfd_error = no_memory;
+         bfd_set_error (bfd_error_no_memory);
          return false;
        }
 
@@ -574,7 +573,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do)
 
   if (!entry)
     {
-      bfd_error = no_memory;
+      bfd_set_error (bfd_error_no_memory);
       return false;
     }
 
@@ -584,7 +583,7 @@ DEFUN (srec_set_section_contents, (abfd, section, location, offset, bytes_to_do)
       unsigned char *data = (unsigned char *) bfd_alloc (abfd, bytes_to_do);
       if (!data)
        {
-         bfd_error = no_memory;
+         bfd_set_error (bfd_error_no_memory);
          return false;
        }
       memcpy (data, location, bytes_to_do);
This page took 0.047281 seconds and 4 git commands to generate.