summaryrefslogtreecommitdiff
path: root/pstack
diff options
context:
space:
mode:
authorvva@eagle.mysql.r18.ru <>2004-02-16 18:09:23 +0400
committervva@eagle.mysql.r18.ru <>2004-02-16 18:09:23 +0400
commitc9c2f4a4fdf1eb24ca69b18c414add490a1f8d8e (patch)
treecc8836794a3e99d169a4c1ac3c758d2434c9c13d /pstack
parenta069dbd5e7a2a4102ff8667f0cf6f18e8a4b3a17 (diff)
downloadmariadb-git-c9c2f4a4fdf1eb24ca69b18c414add490a1f8d8e.tar.gz
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)
Diffstat (limited to 'pstack')
-rw-r--r--pstack/pstack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pstack/pstack.c b/pstack/pstack.c
index 48280d4aedb..75869686e35 100644
--- a/pstack/pstack.c
+++ b/pstack/pstack.c
@@ -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;