[patch] Add external symbol table file support for gprof
Matthias Klose
doko@ubuntu.com
Sun Jun 14 16:23:00 GMT 2009
More information about the Binutils mailing list
Sun Jun 14 16:23:00 GMT 2009
- Previous message (by thread): [patch] Add external symbol table file support for gprof
- Next message (by thread): [patch] Add external symbol table file support for gprof
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Dongsheng Xing schrieb: > Hi, Matthias, > > I am sorry for the mistake I made. > I cannot regenerate the ``expects type long unsigned int *'' warning on my computer with gcc 4.4.0. But I guess this warning is caused by '%lx'. I wish that the following patch will take out the warning. > > Best Regards, > Homer > > > diff -rup binutils-2.19.51.origin/gprof/corefile.c binutils-2.19.51/gprof/corefile.c > --- binutils-2.19.51.origin/gprof/corefile.c 2009-06-14 21:00:29.000000000 +0800 > +++ binutils-2.19.51/gprof/corefile.c 2009-06-14 21:04:35.000000000 +0800 > @@ -509,7 +509,7 @@ core_create_syms_from (const char * sym_ > > 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); thanks, this fixes the build error (on i486-linux-gnu). Matthias
- Previous message (by thread): [patch] Add external symbol table file support for gprof
- Next message (by thread): [patch] Add external symbol table file support for gprof
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list