diff options
Diffstat (limited to 'pstack/pstack.c')
-rw-r--r-- | pstack/pstack.c | 3 |
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; |