Commit 8d335b8d authored by unknown's avatar unknown
Browse files

fixed bug #3200 "cannot compile with pstack"

as downgrade of patch for 
bug #1661 "Compiling --with-pstack fails with binutils 2.13.90"

parent c6a05996
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 *));

+6 −0
Original line number Diff line number Diff line
@@ -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));
+2 −1
Original line number Diff line number Diff line
@@ -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;