mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
More cleanups for gprof, especially with the '386 target.
This commit is contained in:
@ -230,7 +230,7 @@ bfd *abfd;
|
|||||||
i = get_symtab_upper_bound (abfd); /* This will probably give us more
|
i = get_symtab_upper_bound (abfd); /* This will probably give us more
|
||||||
* than we need, but that's ok.
|
* than we need, but that's ok.
|
||||||
*/
|
*/
|
||||||
syms = malloc (i);
|
syms = (asymbol**)malloc (i);
|
||||||
nosyms = bfd_canonicalize_symtab (abfd, syms);
|
nosyms = bfd_canonicalize_symtab (abfd, syms);
|
||||||
|
|
||||||
nname = 0;
|
nname = 0;
|
||||||
@ -355,8 +355,8 @@ openpfile(filename)
|
|||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
fread(&tmp, sizeof(struct hdr), 1, pfile);
|
fread(&tmp, sizeof(struct hdr), 1, pfile);
|
||||||
tmp.lowpc = bfd_get_32 (abfd, &tmp.lowpc);
|
tmp.lowpc = (char*)bfd_get_32 (abfd, &tmp.lowpc);
|
||||||
tmp.highpc = bfd_get_32 (abfd, &tmp.highpc);
|
tmp.highpc = (char*)bfd_get_32 (abfd, &tmp.highpc);
|
||||||
tmp.ncnt = bfd_get_32 (abfd, &tmp.ncnt);
|
tmp.ncnt = bfd_get_32 (abfd, &tmp.ncnt);
|
||||||
|
|
||||||
if ( s_highpc != 0 && ( tmp.lowpc != h.lowpc ||
|
if ( s_highpc != 0 && ( tmp.lowpc != h.lowpc ||
|
||||||
|
@ -47,8 +47,14 @@ nltype indirectchild = {
|
|||||||
(arctype *) 0 /* list of callee arcs */
|
(arctype *) 0 /* list of callee arcs */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __STDC__
|
||||||
int
|
int
|
||||||
iscall (unsigned char *ip) {
|
iscall (unsigned char *ip)
|
||||||
|
#else
|
||||||
|
int iscall(ip)
|
||||||
|
unsigned char *ip;
|
||||||
|
#endif /* __STDC__ */
|
||||||
|
{
|
||||||
if (*ip == 0xeb || *ip == 0x9a)
|
if (*ip == 0xeb || *ip == 0x9a)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user