* serial.h (SERIAL_SET_TTY_STATE): Comment return value.
[deliverable/binutils-gdb.git] / gdb / xcoffexec.c
index 5c47ba13bc8845d0ec08d4e859e374e6900f3dae..074df77a2fe0e5f38ac7500df1ac0ada964db318 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
@@ -469,7 +469,7 @@ add_vmap(ldi)
                       objname, bfd_errmsg(bfd_error));
                /*NOTREACHED*/
        }
-       obj = allocate_objfile (vp->abfd, 0);
+       obj = allocate_objfile (vp->bfd, 0);
        vp->objfile = obj;
 
 #ifndef SOLIB_SYMBOLS_MANUAL
@@ -591,7 +591,7 @@ retry:
                || (memb[0] && !STREQ(memb, vp->member)))
            continue;
 
-         io = bfd_cache_lookup(vp->abfd);              /* totally opaque! */
+         io = bfd_cache_lookup(vp->bfd);               /* totally opaque! */
          if (!io)
            fatal("cannot find BFD's iostream for %s", vp->name);
 
@@ -695,7 +695,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
        if (p->endaddr >= memend)
          {
            /* Entire transfer is within this section.  */
-           res = xfer_fn (p->abfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
+           res = xfer_fn (p->bfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
            return (res != false)? len: 0;
          }
        else if (p->endaddr <= memaddr)
@@ -707,7 +707,7 @@ xfer_memory (memaddr, myaddr, len, write, target)
          {
            /* This section overlaps the transfer.  Just do half.  */
            len = p->endaddr - memaddr;
-           res = xfer_fn (p->abfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
+           res = xfer_fn (p->bfd, p->sec_ptr, myaddr, memaddr - p->addr, len);
            return (res != false)? len: 0;
          }
       else if (p->addr < nextsectaddr)
@@ -727,6 +727,7 @@ print_section_info (t, abfd)
 {
   struct section_table *p;
 
+  /* FIXME-32x64: Need a version of print_address_numeric with field width.  */
   printf_filtered ("\t`%s', ", bfd_get_filename(abfd));
   wrap_here ("        ");
   printf_filtered ("file type %s.\n", bfd_get_target(abfd));
@@ -739,9 +740,9 @@ print_section_info (t, abfd)
     if (info_verbose)
       printf_filtered (" @ %s",
                       local_hex_string_custom ((unsigned long) p->sec_ptr->filepos, "08l"));
-    printf_filtered (" is %s", bfd_section_name (p->abfd, p->sec_ptr));
-    if (p->abfd != abfd) {
-      printf_filtered (" in %s", bfd_get_filename (p->abfd));
+    printf_filtered (" is %s", bfd_section_name (p->bfd, p->sec_ptr));
+    if (p->bfd != abfd) {
+      printf_filtered (" in %s", bfd_get_filename (p->bfd));
     }
     printf_filtered ("\n");
   }
@@ -759,13 +760,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,
@@ -808,8 +809,8 @@ char *args;
 
        for (vp = vmap; vp; vp = vp->nxt) {
                if (!strncmp(secname
-                            , bfd_section_name(vp->abfd, vp->sex), seclen)
-                   && bfd_section_name(vp->abfd, vp->sex)[seclen] == '\0') {
+                            , bfd_section_name(vp->bfd, vp->sex), seclen)
+                   && bfd_section_name(vp->bfd, vp->sex)[seclen] == '\0') {
                        offset = secaddr - vp->tstart;
                        vp->tstart += offset;
                        vp->tend   += offset;
@@ -925,7 +926,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;
@@ -1001,16 +1002,16 @@ bfd_err:
             So for text sections, bfd_section_vma tends to be 0x200,
             and if vp->tstart is 0xd0002000, then the first byte of
             the text section on disk corresponds to address 0xd0002200.  */
-         stp->abfd = vp->abfd;
-         stp->sec_ptr = bfd_get_section_by_name (stp->abfd, ".text");
-         stp->addr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->tstart;
-         stp->endaddr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->tend;
+         stp->bfd = vp->bfd;
+         stp->sec_ptr = bfd_get_section_by_name (stp->bfd, ".text");
+         stp->addr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->tstart;
+         stp->endaddr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->tend;
          stp++;
          
-         stp->abfd = vp->abfd;
-         stp->sec_ptr = bfd_get_section_by_name (stp->abfd, ".data");
-         stp->addr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->dstart;
-         stp->endaddr = bfd_section_vma (stp->abfd, stp->sec_ptr) + vp->dend;
+         stp->bfd = vp->bfd;
+         stp->sec_ptr = bfd_get_section_by_name (stp->bfd, ".data");
+         stp->addr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->dstart;
+         stp->endaddr = bfd_section_vma (stp->bfd, stp->sec_ptr) + vp->dend;
        }
 
       vmap_symtab (vp);
This page took 0.025614 seconds and 4 git commands to generate.