* corefile.c (core_create_syms_from): Use BFD_VMA_FMT when
authorNick Clifton <nickc@redhat.com>
Mon, 15 Jun 2009 08:48:49 +0000 (08:48 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 15 Jun 2009 08:48:49 +0000 (08:48 +0000)
        scanning in an address.

gprof/ChangeLog
gprof/corefile.c

index b7f139f260192f371d8f87f0757e47b9bb3aa2fd..a359bd6354d6d51ecf32dfaa140a4e3ec72fefb2 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-15  Homer Xing  <homer.xing@yahoo.com>
+
+       * corefile.c (core_create_syms_from): Use BFD_VMA_FMT when
+       scanning in an address.
+
 2009-06-12  Homer Xing  <homer.xing@yahoo.com>
 
        * corefile.c (num_of_syms_in): New function - computes the number
index 6ddb52b3f037752ff8fffc07015d0a0676a068af..d7df904d6b684ab72351c75dd641ca55bc20d9ce 100644 (file)
@@ -509,7 +509,7 @@ core_create_syms_from (const char * sym_table_file)
 
       sym_init (symtab.limit);
 
-      sscanf (address, "%lx", &(symtab.limit->addr) );
+      sscanf (address, "%" BFD_VMA_FMT "x", &(symtab.limit->addr) );
 
       symtab.limit->name = (char *) xmalloc (strlen (name) + 1);
       strcpy ((char *) symtab.limit->name, name);