* target.h: Add enum target_waitkind, enum target_signal, and
[deliverable/binutils-gdb.git] / gdb / xcoffexec.c
index 3853486b39e59f8e6706ce809e2384523b4902d6..cb20bc30c08adc3c7745d75dcb2c6731412867d7 100644 (file)
@@ -184,7 +184,7 @@ char *filename;
   else {
        exec_close(0);  /* just in case */
        if (from_tty)
-         printf("No exec file now.\n");
+         printf_unfiltered("No exec file now.\n");
   }
 }
 
@@ -277,7 +277,7 @@ sex_to_vmap(bfd *bf, sec_ptr sex, PTR arg3)
   }
 
   else if (STREQ(bfd_section_name(bf, sex), ".bss"))   /* FIXMEmgo */
-    printf ("bss section in exec! Don't know what the heck to do!\n");
+    printf_unfiltered ("bss section in exec! Don't know what the heck to do!\n");
 }
 
 /* Make a vmap for the BFD "bf", which might be a member of the archive
@@ -410,7 +410,7 @@ static struct vmap *
 add_vmap(ldi)
      register struct ld_info *ldi; 
 {
-       bfd *bfd, *last;
+       bfd *abfd, *last;
        register char *mem, *objname;
        struct objfile *obj;
        struct vmap *vp;
@@ -426,32 +426,32 @@ add_vmap(ldi)
        if (ldi->ldinfo_fd < 0)
          /* Note that this opens it once for every member; a possible
             enhancement would be to only open it once for every object.  */
-         bfd = bfd_openr (objname, gnutarget);
+         abfd = bfd_openr (objname, gnutarget);
        else
-         bfd = bfd_fdopenr(objname, gnutarget, ldi->ldinfo_fd);
-       if (!bfd)
+         abfd = bfd_fdopenr(objname, gnutarget, ldi->ldinfo_fd);
+       if (!abfd)
          error("Could not open `%s' as an executable file: %s",
                                        objname, bfd_errmsg(bfd_error));
 
 
        /* make sure we have an object file */
 
-       if (bfd_check_format(bfd, bfd_object))
-         vp = map_vmap (bfd, 0);
+       if (bfd_check_format(abfd, bfd_object))
+         vp = map_vmap (abfd, 0);
 
-       else if (bfd_check_format(bfd, bfd_archive)) {
+       else if (bfd_check_format(abfd, bfd_archive)) {
                last = 0;
                /*
                 * FIXME??? am I tossing BFDs?  bfd?
                 */
-               while (last = bfd_openr_next_archived_file(bfd, last))
+               while (last = bfd_openr_next_archived_file(abfd, last))
                        if (STREQ(mem, last->filename))
                                break;
 
                if (!last) {
-                 bfd_close(bfd);
+                 bfd_close(abfd);
                  /* FIXME -- should be error */
-                 warning("\"%s\": member \"%s\" missing.", bfd->filename, mem);
+                 warning("\"%s\": member \"%s\" missing.", abfd->filename, mem);
                  return;
                }
 
@@ -460,11 +460,11 @@ add_vmap(ldi)
                        goto obj_err;
                }
 
-               vp = map_vmap (last, bfd);
+               vp = map_vmap (last, abfd);
        }
        else {
            obj_err:
-               bfd_close(bfd);
+               bfd_close(abfd);
                error ("\"%s\": not in executable format: %s.",
                       objname, bfd_errmsg(bfd_error));
                /*NOTREACHED*/
@@ -759,13 +759,13 @@ exec_files_info (t)
   if (!vp)
     return;
 
-  printf("\tMapping info for file `%s'.\n", vp->name);
+  printf_unfiltered("\tMapping info for file `%s'.\n", vp->name);
 
-  printf("\t  %8.8s   %8.8s   %8.8s   %8.8s %8.8s %s\n",
+  printf_unfiltered("\t  %8.8s   %8.8s   %8.8s   %8.8s %8.8s %s\n",
     "tstart", "tend", "dstart", "dend", "section", "file(member)");
 
   for (; vp; vp = vp->nxt)
-     printf("\t0x%8.8x 0x%8.8x 0x%8.8x 0x%8.8x %s%s%s%s\n",
+     printf_unfiltered("\t0x%8.8x 0x%8.8x 0x%8.8x 0x%8.8x %s%s%s%s\n",
        vp->tstart,
        vp->tend,
        vp->dstart,
@@ -925,7 +925,7 @@ xcoff_relocate_core ()
   if (ldinfo_sec == NULL)
     {
 bfd_err:
-      fprintf_filtered (stderr, "Couldn't get ldinfo from core file: %s\n",
+      fprintf_filtered (gdb_stderr, "Couldn't get ldinfo from core file: %s\n",
                        bfd_errmsg (bfd_error));
       do_cleanups (old);
       return;
This page took 0.026006 seconds and 4 git commands to generate.