1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fixed bug #1661 Compiling --pstack fails with binutils 2.13.90

fixed wrong execution of bfd_get_symtab_upper_bound in pstack/pstack.c
for files which don't contain symbols..
to avoid failing of new binutils (old binutils returned 0 in this case)
This commit is contained in:
vva@eagle.mysql.r18.ru
2004-02-16 18:09:23 +04:00
parent a069dbd5e7
commit c9c2f4a4fd

View File

@@ -2667,7 +2667,8 @@ pstack_install_segv_action( const char* path_format_)
if ((abfd = load_bfd(pid))==0)
fprintf(stderr, "BFD load failed..\n");
else {
long storage_needed = bfd_get_symtab_upper_bound (abfd);
long storage_needed= (bfd_get_file_flags(abfd) & HAS_SYMS) ?
bfd_get_symtab_upper_bound (abfd) : 0;
long i;
(void)i;