diff options
author | Nick Clifton <nickc@redhat.com> | 2009-06-15 08:48:49 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-06-15 08:48:49 +0000 |
commit | f89ddd70e77a50ec7881354155ecd4f23a9c6c7c (patch) | |
tree | 99502ced604e11ad26119fa6bad2d7a6e08beb44 | |
parent | b80ee1aa0e1867b36e8298bf9d6128017a98852d (diff) | |
download | gdb-f89ddd70e77a50ec7881354155ecd4f23a9c6c7c.zip gdb-f89ddd70e77a50ec7881354155ecd4f23a9c6c7c.tar.gz gdb-f89ddd70e77a50ec7881354155ecd4f23a9c6c7c.tar.bz2 |
* corefile.c (core_create_syms_from): Use BFD_VMA_FMT when
scanning in an address.
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/corefile.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index b7f139f..a359bd6 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -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 diff --git a/gprof/corefile.c b/gprof/corefile.c index 6ddb52b..d7df904 100644 --- a/gprof/corefile.c +++ b/gprof/corefile.c @@ -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); |