]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-08-14 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 14 Aug 2003 20:12:31 +0000 (20:12 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 14 Aug 2003 20:12:31 +0000 (20:12 +0000)
* symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
orig_addrs is set up properly.

gdb/ChangeLog
gdb/symfile.c

index c8a58f5aa931ba44e1eae99d305e64a905e6781b..a520ffebfa9ca734d52ae5ca43aed9f6901a857f 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-14  Elena Zannoni  <ezannoni@redhat.com>
+
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
+       orig_addrs is set up properly.
+
 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
 
        Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
index 839a7bc366ed45aaa0001fcd9010889b60d83a48..2466649628ce015503333a5df3705a4fc6375af8 100644 (file)
@@ -854,7 +854,12 @@ symbol_file_add_with_addrs_or_offsets (char *name, int from_tty,
   orig_addrs = alloc_section_addr_info (bfd_count_sections (abfd));
   my_cleanups = make_cleanup (xfree, orig_addrs);
   if (addrs)
-    *orig_addrs = *addrs;
+    {
+      int i;
+      orig_addrs->num_sections = addrs->num_sections;
+      for (i = 0; i < addrs->num_sections; i++)
+       orig_addrs->other[i] = addrs->other[i];
+    }
 
   /* If the objfile uses a mapped symbol file, and we have a psymtab for
      it, then skip reading any symbols at this time. */