* elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
[deliverable/binutils-gdb.git] / gprof / corefile.c
index a6e6f835d270643f7e28b84b054d860a90c06333..790fc2862086e74cd53c163fa240f87c792e926a 100644 (file)
@@ -195,8 +195,8 @@ DEFUN (core_get_text_space, (core_bfd), bfd * core_bfd)
 
   if (!core_text_space)
     {
-      fprintf (stderr, _("%s: ran out room for %ld bytes of text space\n"),
-              whoami, core_text_sect->_raw_size);
+      fprintf (stderr, _("%s: ran out room for %lu bytes of text space\n"),
+              whoami, (unsigned long) core_text_sect->_raw_size);
       done (1);
     }
   if (!bfd_get_section_contents (core_bfd, core_text_sect, core_text_space,
@@ -371,7 +371,7 @@ DEFUN (get_src_info, (addr, filename, name, line_num),
       && fname && func_name && l)
     {
       DBG (AOUTDEBUG, printf ("[get_src_info] 0x%lx -> %s:%d (%s)\n",
-                             addr, fname, l, func_name));
+                             (unsigned long) addr, fname, l, func_name));
       *filename = fname;
       *name = func_name;
       *line_num = l;
@@ -392,7 +392,8 @@ DEFUN (get_src_info, (addr, filename, name, line_num),
  * entered.
  */
 void
-DEFUN (core_create_function_syms, (core_bfd), bfd * core_bfd)
+core_create_function_syms (core_bfd)
+     bfd *core_bfd ATTRIBUTE_UNUSED;
 {
   bfd_vma min_vma = ~0, max_vma = 0;
   int class;
@@ -446,7 +447,8 @@ DEFUN (core_create_function_syms, (core_bfd), bfd * core_bfd)
        {
          DBG (AOUTDEBUG,
               printf ("[core_create_function_syms] rejecting: 0x%lx %s\n",
-                      core_syms[i]->value, core_syms[i]->name));
+                      (unsigned long) core_syms[i]->value,
+                      core_syms[i]->name));
          continue;
        }
       /* This should be replaced with a binary search or hashed
@@ -545,7 +547,8 @@ DEFUN (core_create_function_syms, (core_bfd), bfd * core_bfd)
 
       DBG (AOUTDEBUG, printf ("[core_create_function_syms] %ld %s 0x%lx\n",
                              (long) (symtab.limit - symtab.base),
-                             symtab.limit->name, symtab.limit->addr));
+                             symtab.limit->name,
+                             (unsigned long) symtab.limit->addr));
       ++symtab.limit;
     }
 
@@ -720,9 +723,10 @@ DEFUN (core_create_line_syms, (core_bfd), bfd * core_bfd)
          discard_underscores = 0;
        }
 
-      DBG (AOUTDEBUG, printf ("[core_create_line_syms] %d %s 0x%lx\n",
-                             ltab.limit - ltab.base, ltab.limit->name,
-                             ltab.limit->addr));
+      DBG (AOUTDEBUG, printf ("[core_create_line_syms] %lu %s 0x%lx\n",
+                             (unsigned long) (ltab.limit - ltab.base),
+                             ltab.limit->name,
+                             (unsigned long) ltab.limit->addr));
       ++ltab.limit;
     }
 
This page took 0.024174 seconds and 4 git commands to generate.