* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git] / gdb / xcoffexec.c
index 65a57b59f9f3aa2343b0dd2b8ada03d4dfa5cde2..3853486b39e59f8e6706ce809e2384523b4902d6 100644 (file)
@@ -147,7 +147,7 @@ char *filename;
        if (scratch_chan < 0)
          perror_with_name(filename);
 
-       exec_bfd = bfd_fdopenr(scratch_pathname, NULL, scratch_chan);
+       exec_bfd = bfd_fdopenr(scratch_pathname, gnutarget, scratch_chan);
        if (!exec_bfd)
          error("Could not open `%s' as an executable file: %s"
                      , scratch_pathname, bfd_errmsg(bfd_error));
@@ -290,7 +290,7 @@ map_vmap (bfd *bf, bfd *arch)
   struct objfile *obj;
 
   vp = (void*) xmalloc (sizeof (*vp));
-  bzero (vp, sizeof (*vp));
+  memset (vp, '\0', sizeof (*vp));
   vp->nxt = 0;
   vp->bfd = bf;
   vp->name = bfd_get_filename(arch ? arch : bf);
@@ -426,9 +426,9 @@ 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, NULL);
+         bfd = bfd_openr (objname, gnutarget);
        else
-         bfd = bfd_fdopenr(objname, NULL, ldi->ldinfo_fd);
+         bfd = bfd_fdopenr(objname, gnutarget, ldi->ldinfo_fd);
        if (!bfd)
          error("Could not open `%s' as an executable file: %s",
                                        objname, bfd_errmsg(bfd_error));
@@ -732,11 +732,13 @@ print_section_info (t, abfd)
   printf_filtered ("file type %s.\n", bfd_get_target(abfd));
 
   for (p = t->to_sections; p < t->to_sections_end; p++) {
-    printf_filtered ("\t%s", local_hex_string_custom (p->addr, "08"));
-    printf_filtered (" - %s", local_hex_string_custom (p->endaddr, "08"));
+    printf_filtered ("\t%s",
+                    local_hex_string_custom ((unsigned long) p->addr, "08l"));
+    printf_filtered (" - %s",
+                    local_hex_string_custom ((unsigned long) p->endaddr, "08l"));
     if (info_verbose)
       printf_filtered (" @ %s",
-                      local_hex_string_custom (p->sec_ptr->filepos, "08"));
+                      local_hex_string_custom ((unsigned long) p->sec_ptr->filepos, "08l"));
     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));
This page took 0.023023 seconds and 4 git commands to generate.