diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-03-19 18:38:25 +0400 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-03-19 18:38:25 +0400 |
commit | 8d335b8d12bade0958ddf8502bab17780a5e165e (patch) | |
tree | 1b026f3c9164153476ac85c6b137718d27e002b2 /pstack | |
parent | c6a059964271c2b1cb7dc9905d9b708770d1278f (diff) | |
download | mariadb-git-8d335b8d12bade0958ddf8502bab17780a5e165e.tar.gz |
fixed bug #3200 "cannot compile with pstack"
as downgrade of patch for
bug #1661 "Compiling --with-pstack fails with binutils 2.13.90"
Diffstat (limited to 'pstack')
-rw-r--r-- | pstack/bucomm.h | 6 | ||||
-rw-r--r-- | pstack/budbg.h | 6 | ||||
-rw-r--r-- | pstack/pstack.c | 3 |
3 files changed, 14 insertions, 1 deletions
diff --git a/pstack/bucomm.h b/pstack/bucomm.h index 7712a70f5a2..6b3633d8d63 100644 --- a/pstack/bucomm.h +++ b/pstack/bucomm.h @@ -50,6 +50,12 @@ void *alloca (); # endif /* HAVE_ALLOCA_H */ #endif +#ifndef BFD_TRUE_FALSE +#define boolean bfd_boolean +#define true TRUE +#define false FALSE +#endif + /* bucomm.c */ void bfd_nonfatal PARAMS ((CONST char *)); diff --git a/pstack/budbg.h b/pstack/budbg.h index d8ee8895e76..9f0203ad5e7 100644 --- a/pstack/budbg.h +++ b/pstack/budbg.h @@ -24,6 +24,12 @@ #include <stdio.h> +#ifndef BFD_TRUE_FALSE +#define boolean bfd_boolean +#define true TRUE +#define false FALSE +#endif + /* Routine used to read generic debugging information. */ extern PTR read_debugging_info PARAMS ((bfd *, asymbol **, long)); diff --git a/pstack/pstack.c b/pstack/pstack.c index 48280d4aedb..5c6e2baf909 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; |