* remote.c (remote_wait): Use strtoul for parsing 'N' message.
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 8 Oct 1993 16:51:14 +0000 (16:51 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 8 Oct 1993 16:51:14 +0000 (16:51 +0000)
Add code to relocate symfile_objfile->sections.

gdb/remote.c

index 9900b3b1ad71af96cf7a4ecb9b2a711a7de6537b..329eb4eef7dcb6792fcedb37205e0b3bcbd59742 100644 (file)
@@ -581,16 +581,16 @@ remote_wait (status)
              objfile_relocate (symfile_objfile, offs);
              {
                struct obj_section *s;
-               bfd *bfd;
+               bfd *abfd;
 
-               bfd = symfile_objfile->obfd;
+               abfd = symfile_objfile->obfd;
 
                for (s = symfile_objfile->sections;
                     s < symfile_objfile->sections_end; ++s)
                  {
                    flagword flags;
 
-                   flags = bfd_get_section_flags (bfd, s->sec_ptr);
+                   flags = bfd_get_section_flags (abfd, s->sec_ptr);
 
                    if (flags & SEC_CODE)
                      {