Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Patch to replace BFD_NEED_DECLARATION with AC_CHECK_DECLS
@ 2005-07-01 16:49 Steve Ellcey
  2005-07-01 16:54 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2005-07-01 16:49 UTC (permalink / raw)
  To: gdb-patches

This patch removes the use of BFD_NEED_DECLARATION from gdb/gdbserver
and replaces it with AC_CHECK_DECLS.  Once this checkin is done I intend
to remove the definition of BFD_NEED_DECLARATION from the bfd
subdirectory as it is no longer needed now that we are using newer
versions of autoconf that have AC_CHECK_DECLS.

There is still a use of BFD_NEED_DECLARATION in src/mmalloc but my
understanding is that mmalloc is no longer used and so that use can be
ignored.

The change was tested on IA64 Linux with no regressions.  I have not
done any gdb checkins before but I have done binutils changes and I do
have a gdb copyright assignment on file and write access to the src
repository so I can check this in myself if it is approved.

OK to checkin?

Steve Ellcey
sje@cup.hp.com


src/gdb/gdbserver/ChangeLog

2005-07-01  Steve Ellcey  <sje@cup.hp.com>

	* configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
	* configure: Regenerate.
	* config.in: Regenerate.
	* server.h (NEED_DECLARATION_STRERROR):
	Replace with !HAVE_DECL_STRERROR.

*** src.orig/gdb/gdbserver/configure.ac	Fri Jul  1 09:37:10 2005
--- src/gdb/gdbserver/configure.ac	Fri Jul  1 09:36:55 2005
*************** AC_CHECK_HEADERS(sgtty.h termio.h termio
*** 38,44 ****
  		 proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl
  		 stdlib.h unistd.h)
  
! BFD_NEED_DECLARATION(strerror)
  
  AC_CHECK_TYPES(socklen_t, [], [],
  [#include <sys/types.h>
--- 38,44 ----
  		 proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl
  		 stdlib.h unistd.h)
  
! AC_CHECK_DECLS(strerror)
  
  AC_CHECK_TYPES(socklen_t, [], [],
  [#include <sys/types.h>
*** src.orig/gdb/gdbserver/server.h	Fri Jul  1 09:37:15 2005
--- src/gdb/gdbserver/server.h	Fri Jul  1 09:36:55 2005
***************
*** 34,40 ****
  #include <string.h>
  #endif
  
! #ifdef NEED_DECLARATION_STRERROR
  #ifndef strerror
  extern char *strerror (int);	/* X3.159-1989  4.11.6.2 */
  #endif
--- 34,40 ----
  #include <string.h>
  #endif
  
! #if !HAVE_DECL_STRERROR
  #ifndef strerror
  extern char *strerror (int);	/* X3.159-1989  4.11.6.2 */
  #endif


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-01 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 16:49 Patch to replace BFD_NEED_DECLARATION with AC_CHECK_DECLS Steve Ellcey
2005-07-01 16:54 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox