Change TUI window commands to be case-sensitive
[deliverable/binutils-gdb.git] / gdb / solib-spu.c
index 5b97b9bcf68885c0cc78f2548eb51217121810bf..49e470adb62dadb4c4e3849899f8819cc78c885a 100644 (file)
@@ -364,7 +364,7 @@ spu_bfd_open (const char *pathname)
   spu_name = bfd_get_section_by_name (abfd.get (), ".note.spu_name");
   if (spu_name)
     {
-      int sect_size = bfd_section_size (abfd.get (), spu_name);
+      int sect_size = bfd_section_size (spu_name);
 
       if (sect_size > 20)
        {
@@ -377,8 +377,7 @@ spu_bfd_open (const char *pathname)
 
          strcat (buf, original_name);
 
-         xfree ((char *)abfd->filename);
-         abfd->filename = xstrdup (buf);
+         bfd_set_filename (abfd.get (), xstrdup (buf));
        }
     }
 
This page took 0.023466 seconds and 4 git commands to generate.