mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
* gprof.c (getsymtab): Change nosyms to long. Rename
get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for errors from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Wed Mar 30 16:12:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* gprof.c (getsymtab): Change nosyms to long. Rename
|
||||||
|
get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for
|
||||||
|
errors from bfd_get_symtab_upper_bound and
|
||||||
|
bfd_canonicalize_symtab.
|
||||||
|
|
||||||
Tue Mar 22 10:50:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
|
Tue Mar 22 10:50:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
* gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
|
* gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
|
||||||
|
@ -244,13 +244,25 @@ bfd *abfd;
|
|||||||
{
|
{
|
||||||
register long i;
|
register long i;
|
||||||
int askfor;
|
int askfor;
|
||||||
int nosyms;
|
long nosyms;
|
||||||
asymbol **syms;
|
asymbol **syms;
|
||||||
i = get_symtab_upper_bound (abfd); /* This will probably give us more
|
i = bfd_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.
|
||||||
*/
|
*/
|
||||||
|
if (i < 0)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "%s: %s: %s\n", whoami, a_outname,
|
||||||
|
bfd_errmsg (bfd_get_error ()));
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
syms = (asymbol**)xmalloc (i);
|
syms = (asymbol**)xmalloc (i);
|
||||||
nosyms = bfd_canonicalize_symtab (abfd, syms);
|
nosyms = bfd_canonicalize_symtab (abfd, syms);
|
||||||
|
if (nosyms < 0)
|
||||||
|
{
|
||||||
|
fprintf (stderr, "%s: %s: %s\n", whoami, a_outname,
|
||||||
|
bfd_errmsg (bfd_get_error ()));
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
nname = 0;
|
nname = 0;
|
||||||
for (i = 0; i < nosyms; i++) {
|
for (i = 0; i < nosyms; i++) {
|
||||||
|
Reference in New Issue
Block a user