diff options
author | Yao Qi <yao@codesourcery.com> | 2011-02-11 09:57:25 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-02-11 09:57:25 +0000 |
commit | 4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1 (patch) | |
tree | 1db0a19e62952ad71aa38816b03cd51362754bc5 /gdb/gdbserver | |
parent | 00a9652c1bb9e6720587b9a3133518b7de8f8623 (diff) | |
download | gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.zip gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.tar.gz gdb-4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1.tar.bz2 |
2011-02-11 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove signals.o from COMMON_OBS. Link
libcommon.a.
* configure.ac: Add common to sub dir.
* configure: Regenerate.
common/
2011-02-11 Yao Qi <yao@codesourcery.com>
Build libcommon.a.
* Makefile.in: New.
* configure.ac: New.
* aclocal.m4: New.
* configure: Generate.
gdbserver/
2011-02-11 Yao Qi <yao@codesourcery.com>
* configure.ac: Call AC_PROG_RANLIB.
* Makefile.in: Remove signals.o from OBS. Link libcommon.a.
* configure: Regenerate.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/Makefile.in | 41 | ||||
-rwxr-xr-x | gdb/gdbserver/configure | 93 | ||||
-rw-r--r-- | gdb/gdbserver/configure.ac | 1 |
4 files changed, 135 insertions, 6 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a93ca79..470b383 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2011-02-11 Yao Qi <yao@codesourcery.com> + + * configure.ac: Call AC_PROG_RANLIB. + * Makefile.in: Remove signals.o from OBS. Link libcommon.a. + * configure: Regenerate. + 2011-02-07 Pedro Alves <pedro@codesourcery.com> * server.c (gdb_read_memory): Change return semantics to allow diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 2d2d27f..07e020f 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -45,6 +45,8 @@ includedir = @includedir@ SHELL = /bin/sh EXEEXT = @EXEEXT@ +PWD_COMMAND = $${PWDCMD-pwd} +RANLIB = @RANLIB@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -130,10 +132,14 @@ DEPFILES = @GDBSERVER_DEPFILES@ LIBOBJS = @LIBOBJS@ +LIBCOMMON_DIR = common +LIBCOMMON = $(LIBCOMMON_DIR)/libcommon.a +LIBCOMMON_SRC = $(srcdir)/$(LIBCOMMON_DIR) + SOURCES = $(SFILES) TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} -OBS = inferiors.o regcache.o remote-utils.o server.o signals.o target.o \ +OBS = inferiors.o regcache.o remote-utils.o server.o target.o \ utils.o version.o \ mem-break.o hostio.o event-loop.o tracepoint.o \ $(XML_BUILTIN) \ @@ -190,6 +196,32 @@ FLAGS_TO_PASS = \ all: gdbserver$(EXEEXT) gdbreplay$(EXEEXT) $(extra_libraries) +$(LIBCOMMON): $(LIBCOMMON_DIR)/Makefile + @$(MAKE) $(FLAGS_TO_PASS) DO=all --directory=common + +common/Makefile: configure-common config.status + CONFIG_FILES="common/Makefile" \ + CONFIG_COMMANDS="depfiles" \ + CONFIG_HEADERS= \ + CONFIG_LINKS= \ + $(SHELL) config.status + +configure-common: + @: $(MAKE); $(unstage) + @r=`${PWD_COMMAND}`; export r; \ + s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \ + test ! -f common/Makefile || exit 0; \ + $(SHELL) $(srcdir)/../../mkinstalldirs common ; \ + $(HOST_EXPORTS) \ + echo Configuring in common; \ + cd "common" || exit 1; \ + commondir="$$s/../common"; \ + srcdiroption="--srcdir=$${commondir}"; \ + $(SHELL) $${commondir}/configure --enable-gdbserver=yes \ + $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \ + --target=${target_alias} $${srcdiroption} \ + || exit 1 + # Traditionally "install" depends on "all". But it may be useful # not to; for example, if the user has made some trivial change to a # source file and doesn't care about rebuilding or just wants to save the @@ -224,10 +256,10 @@ html: install-html: clean-info: -gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} +gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBCOMMON) rm -f gdbserver$(EXEEXT) ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \ - $(GDBSERVER_LIBS) $(XM_CLIBS) + $(LIBCOMMON) $(GDBSERVER_LIBS) $(XM_CLIBS) gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) rm -f gdbreplay$(EXEEXT) @@ -382,9 +414,6 @@ tracepoint.o: tracepoint.c $(server_h) utils.o: utils.c $(server_h) gdbreplay.o: gdbreplay.c config.h -signals.o: ../common/signals.c $(server_h) $(signals_def) - $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER - # We build memmem.c without -Werror because this file is not under # our control. On LynxOS, the compiler generates some warnings # because str-two-way.h uses a constant (MAX_SIZE) whose definition diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index aaa73fc..024da0b 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -625,6 +625,7 @@ build EGREP GREP CPP +RANLIB OBJEXT EXEEXT ac_ct_CC @@ -2985,6 +2986,98 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + ac_ext=c ac_cpp='$CPP $CPPFLAGS' diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 07ac26a..d81f241 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -26,6 +26,7 @@ AC_CONFIG_HEADER(config.h:config.in) AC_CONFIG_LIBOBJ_DIR(../gnulib) AC_PROG_CC +AC_PROG_RANLIB AC_GNU_SOURCE AC_CANONICAL_SYSTEM |