2000-04-03 H.J. Lu <hjl@gnu.org>
* gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX is defined and <regex.h> otherwise. * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h". * monitor.c: Likewise. * osfsolib.c: Likewise. * solib.c: Likewise. * source.c: Likewise. * symtab.c: Likewise. * Makefile.in (REGEX): Changed to @REGEX@. (REGEX_CFLAGS): New. (REGEX1): Removed. (ADD_DEPS): Use $(REGEX) instead of $(REGEX1). (INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS). * configure.in (--with-included-regex): New switch. (REGEX): New. Subsstitue @REGEX@ in Makefile.in. (REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in. * configure: Regenerated.
This commit is contained in:
parent
afc05dd4fd
commit
8898755195
11 changed files with 458 additions and 319 deletions
|
@ -1,3 +1,26 @@
|
|||
2000-04-03 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX
|
||||
is defined and <regex.h> otherwise.
|
||||
|
||||
* irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h".
|
||||
* monitor.c: Likewise.
|
||||
* osfsolib.c: Likewise.
|
||||
* solib.c: Likewise.
|
||||
* source.c: Likewise.
|
||||
* symtab.c: Likewise.
|
||||
|
||||
* Makefile.in (REGEX): Changed to @REGEX@.
|
||||
(REGEX_CFLAGS): New.
|
||||
(REGEX1): Removed.
|
||||
(ADD_DEPS): Use $(REGEX) instead of $(REGEX1).
|
||||
(INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS).
|
||||
|
||||
* configure.in (--with-included-regex): New switch.
|
||||
(REGEX): New. Subsstitue @REGEX@ in Makefile.in.
|
||||
(REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in.
|
||||
* configure: Regenerated.
|
||||
|
||||
2000-04-03 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* NEWS (powerpc-*-linux*): Mention.
|
||||
|
|
|
@ -114,6 +114,11 @@ LIBIBERTY = ../libiberty/libiberty.a
|
|||
MMALLOC = @MMALLOC@
|
||||
MMALLOC_CFLAGS = @MMALLOC_CFLAGS@
|
||||
|
||||
# We are using our own version of REGEX now to be consistent across
|
||||
# machines.
|
||||
REGEX = @REGEX@
|
||||
REGEX_CFLAGS = @REGEX_CFLAGS@
|
||||
|
||||
# Where is the BFD library? Typically in ../bfd.
|
||||
BFD_DIR = ../bfd
|
||||
BFD = $(BFD_DIR)/libbfd.a
|
||||
|
@ -271,7 +276,8 @@ INTERNAL_WARN_CFLAGS = \
|
|||
$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
|
||||
$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
|
||||
$(BFD_CFLAGS) $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) \
|
||||
$(INTL_CFLAGS) $(TUI_CFLAGS) $(ENABLE_CFLAGS) $(GDB_WARN_CFLAGS)
|
||||
$(INTL_CFLAGS) $(TUI_CFLAGS) $(ENABLE_CFLAGS) \
|
||||
$(REGEX_CFLAGS) $(GDB_WARN_CFLAGS)
|
||||
INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
|
||||
|
||||
# LDFLAGS is specifically reserved for setting from the command line
|
||||
|
@ -283,11 +289,6 @@ INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
|
|||
INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) @HLDFLAGS@
|
||||
HLDENV = @HLDENV@
|
||||
|
||||
# We are using our own version of REGEX now to be consistent across
|
||||
# machines.
|
||||
REGEX = gnu-regex.o
|
||||
REGEX1 = gnu-regex.o
|
||||
|
||||
# If your system is missing alloca(), or, more likely, it's there but
|
||||
# it doesn't work, then refer to libiberty.
|
||||
|
||||
|
@ -308,7 +309,7 @@ CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
|
|||
$(OPCODES) $(MMALLOC) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS)
|
||||
|
||||
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
||||
ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
||||
ADD_DEPS = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
|
||||
|
||||
VERSION = 20000204
|
||||
DIST=gdb
|
||||
|
|
669
gdb/configure
vendored
669
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -503,6 +503,36 @@ if test x$want_mmalloc = xtrue; then
|
|||
MMALLOC='../mmalloc/libmmalloc.a'
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(included-regex,
|
||||
[ --with-included-regex Use included regex],
|
||||
[case "${withval}" in
|
||||
yes) want_included_regex=true ;;
|
||||
no) want_included_regex=false;;
|
||||
*) AC_MSG_ERROR(bad value ${withval} for GDB with-included-regex option) ;;
|
||||
esac],[want_included_regex=true])dnl
|
||||
|
||||
REGEX="gnu-regex.o"
|
||||
REGEX_CFLAGS="-DUSE_INCLUDED_REGEX"
|
||||
if test $want_included_regex = false; then
|
||||
AC_MSG_CHECKING(for GNU regex)
|
||||
AC_CACHE_VAL(gdb_cv_have_gnu_regex,
|
||||
[AC_TRY_COMPILE([#include <gnu-versions.h>
|
||||
#include <sys/types.h>
|
||||
#include <regex.h>],
|
||||
[#if !defined _GNU_REGEX_INTERFACE_VERSION || !defined __GLIBC__ || __GLIBC__ < 2
|
||||
#error No valid GNU regex.
|
||||
#endif
|
||||
],
|
||||
[gdb_cv_have_gnu_regex=yes],
|
||||
[gdb_cv_have_gnu_regex=no])])
|
||||
AC_MSG_RESULT($gdb_cv_have_gnu_regex)
|
||||
if test $gdb_cv_have_gnu_regex = yes; then
|
||||
REGEX=
|
||||
REGEX_CFLAGS=
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(REGEX)
|
||||
AC_SUBST(REGEX_CFLAGS)
|
||||
|
||||
# In the Cygwin environment, we need some additional flags.
|
||||
AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin,
|
||||
|
|
28
gdb/gdb_regex.h
Normal file
28
gdb/gdb_regex.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Portable <regex.h>
|
||||
Copyright 2000 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef _GDB_REGEX_H
|
||||
#define _GDB_REGEX_H
|
||||
#ifdef USE_INCLUDED_REGEX
|
||||
#include "gnu-regex.h"
|
||||
#else
|
||||
#include <regex.h>
|
||||
#endif
|
||||
#endif /* _GDB_REGEX_H */
|
|
@ -278,7 +278,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
|
|||
#include "objfiles.h"
|
||||
#include "command.h"
|
||||
#include "frame.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "inferior.h"
|
||||
#include "language.h"
|
||||
#include "gdbcmd.h"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
#include "monitor.h"
|
||||
#include "gdbcmd.h"
|
||||
#include "inferior.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "dcache.h"
|
||||
#include "srec.h"
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include "command.h"
|
||||
#include "target.h"
|
||||
#include "frame.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "inferior.h"
|
||||
#include "language.h"
|
||||
#include "gdbcmd.h"
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#include "command.h"
|
||||
#include "target.h"
|
||||
#include "frame.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "inferior.h"
|
||||
#include "environ.h"
|
||||
#include "language.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "gdb_stat.h"
|
||||
#include <fcntl.h>
|
||||
#include "gdbcore.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "symfile.h"
|
||||
#include "objfiles.h"
|
||||
#include "annotate.h"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "objfiles.h"
|
||||
#include "gdbcmd.h"
|
||||
#include "call-cmds.h"
|
||||
#include "gnu-regex.h"
|
||||
#include "gdb_regex.h"
|
||||
#include "expression.h"
|
||||
#include "language.h"
|
||||
#include "demangle.h"
|
||||
|
|
Loading…
Reference in a new issue