From: Steve Ellcey <sje@cup.hp.com>
To: gdb-patches@sourceware.org
Subject: Patch to replace BFD_NEED_DECLARATION with AC_CHECK_DECLS
Date: Fri, 01 Jul 2005 16:49:00 -0000 [thread overview]
Message-ID: <200507011648.JAA14525@hpsje.cup.hp.com> (raw)
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
next reply other threads:[~2005-07-01 16:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-01 16:49 Steve Ellcey [this message]
2005-07-01 16:54 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507011648.JAA14525@hpsje.cup.hp.com \
--to=sje@cup.hp.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox