From: Daniel Jacobowitz Date: Mon, 11 Apr 2005 14:13:14 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9494c6a5dc7698749a51dded229fabceca98dd88;p=binutils-gdb.git gdb/ * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver. gdb/testsuite/ * Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with gdb.server. * configure.ac: Likewise. * configure: Regenerated. * gdb.gdbserver/Makefile.in: Moved to... * gdb.server/Makefile.in: ... here. * gdb.gdbserver/server.c: Moved to... * gdb.server/server.c: ... here. * gdb.gdbserver/server-run.exp: Moved to... * gdb.server/server-run.exp: ... here. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 315abf29051..482b9b7a595 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-04-11 Daniel Jacobowitz + + * config/djgpp/fnchange.lst: Remove entries for gdb.gdbserver. + 2005-04-10 Mark Kettenis * rs6000-tdep.c (ppc_supply_fpregset): Increment offset by 8 for diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst index c2b60bafed7..70f42e23ce4 100644 --- a/gdb/config/djgpp/fnchange.lst +++ b/gdb/config/djgpp/fnchange.lst @@ -206,9 +206,6 @@ @V@/gdb/testsuite/gdb.base/coremaker2.c @V@/gdb/testsuite/gdb.base/core2maker.c @V@/gdb/testsuite/gdb.cp/m-static1.cc @V@/gdb/testsuite/gdb.cp/m-stat1.cc @V@/gdb/testsuite/gdb.cp/namespace1.cc @V@/gdb/testsuite/gdb.cp/namesp1.cc -@V@/gdb/testsuite/gdb.gdbserver/Makefile.in @V@/gdb/testsuite/gdb.srv/Makefile.in -@V@/gdb/testsuite/gdb.gdbserver/server-run.exp @V@/gdb/testsuite/gdb.srv/server-run.exp -@V@/gdb/testsuite/gdb.gdbserver/server.c @V@/gdb/testsuite/gdb.srv/server.c @V@/gdb/testsuite/gdb.gdbtk/ChangeLog @V@/gdb/testsuite/gdb.tk/ChangeLog @V@/gdb/testsuite/gdb.gdbtk/Makefile.in @V@/gdb/testsuite/gdb.tk/Makefile.in @V@/gdb/testsuite/gdb.gdbtk/browser.exp @V@/gdb/testsuite/gdb.tk/browser.exp diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7e062f3baea..ba5909b1b9a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2005-04-08 Daniel Jacobowitz + + * Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with + gdb.server. + * configure.ac: Likewise. + * configure: Regenerated. + * gdb.gdbserver/Makefile.in: Moved to... + * gdb.server/Makefile.in: ... here. + * gdb.gdbserver/server.c: Moved to... + * gdb.server/server.c: ... here. + * gdb.gdbserver/server-run.exp: Moved to... + * gdb.server/server-run.exp: ... here. + 2005-04-08 Daniel Jacobowitz * Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver. diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index dedfe95d756..b92b91686f8 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -38,7 +38,7 @@ SUBDIRS = @subdirs@ RPATH_ENVVAR = @RPATH_ENVVAR@ ALL_SUBDIRS = gdb.ada gdb.arch gdb.asm gdb.base gdb.cp gdb.disasm \ gdb.dwarf2 \ - gdb.fortran gdb.gdbserver gdb.java gdb.mi \ + gdb.fortran gdb.server gdb.java gdb.mi \ gdb.objc gdb.threads gdb.trace \ $(SUBDIRS) diff --git a/gdb/testsuite/configure b/gdb/testsuite/configure index 72734f5e590..fbf77b52994 100755 --- a/gdb/testsuite/configure +++ b/gdb/testsuite/configure @@ -3075,7 +3075,7 @@ done - ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.gdbserver/Makefile gdb.java/Makefile gdb.mi/Makefile gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" + ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.server/Makefile gdb.java/Makefile gdb.mi/Makefile gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure @@ -3635,7 +3635,7 @@ do "gdb.disasm/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;; "gdb.dwarf2/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;; "gdb.fortran/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;; - "gdb.gdbserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.gdbserver/Makefile" ;; + "gdb.server/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;; "gdb.java/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;; "gdb.mi/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;; "gdb.objc/Makefile" ) CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;; diff --git a/gdb/testsuite/configure.ac b/gdb/testsuite/configure.ac index 814ee8a3526..0c89789df11 100644 --- a/gdb/testsuite/configure.ac +++ b/gdb/testsuite/configure.ac @@ -112,6 +112,6 @@ AC_OUTPUT([Makefile \ gdb.ada/Makefile \ gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \ gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile \ - gdb.fortran/Makefile gdb.gdbserver/Makefile \ + gdb.fortran/Makefile gdb.server/Makefile \ gdb.java/Makefile gdb.mi/Makefile \ gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile]) diff --git a/gdb/testsuite/gdb.gdbserver/Makefile.in b/gdb/testsuite/gdb.gdbserver/Makefile.in deleted file mode 100644 index 0633edf4b81..00000000000 --- a/gdb/testsuite/gdb.gdbserver/Makefile.in +++ /dev/null @@ -1,24 +0,0 @@ -VPATH = @srcdir@ -srcdir = @srcdir@ - -EXECUTABLES = - -MISCELLANEOUS = - -all info install-info dvi install uninstall installcheck check: - @echo "Nothing to be done for $@..." - -clean mostlyclean: - -find . -name '*.o' -print | xargs rm -f - -find . -name '*.ali' -print | xargs rm -f - -find . -name 'b~*.ad[sb]' -print | xargs rm -f - -rm -f *~ a.out xgdb *.x *.ci *.tmp - -rm -f *~ *.o a.out xgdb *.x *.ci *.tmp - -rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES) - -rm -f $(MISCELLANEOUS) twice-tmp.c - -distclean maintainer-clean realclean: clean - -rm -f *~ core - -rm -f Makefile config.status config.log - -rm -f *-init.exp - -rm -fr *.log summary detail *.plog *.sum *.psum site.* diff --git a/gdb/testsuite/gdb.gdbserver/server-run.exp b/gdb/testsuite/gdb.gdbserver/server-run.exp deleted file mode 100644 index e0085dc5936..00000000000 --- a/gdb/testsuite/gdb.gdbserver/server-run.exp +++ /dev/null @@ -1,42 +0,0 @@ -# This testcase is part of GDB, the GNU debugger. - -# Copyright 2005 Free Software Foundation, Inc. - -# 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. - -# Test the basic functionality of gdbserver. - -load_lib gdbserver-support.exp - -set testfile "server" -set srcfile ${testfile}.c -set binfile ${objdir}/${subdir}/${testfile} - -if { [skip_gdbserver_tests] } { - return 0 -} - -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - return -1 -} - -gdb_exit -gdb_start - -gdbserver_load $binfile "" -gdb_reinitialize_dir $srcdir/$subdir - -gdb_breakpoint main -gdb_test "continue" "Breakpoint.* main .*" "continue to main" diff --git a/gdb/testsuite/gdb.gdbserver/server.c b/gdb/testsuite/gdb.gdbserver/server.c deleted file mode 100644 index b6512633a9e..00000000000 --- a/gdb/testsuite/gdb.gdbserver/server.c +++ /dev/null @@ -1,24 +0,0 @@ -/* This testcase is part of GDB, the GNU debugger. - - Copyright 2005 Free Software Foundation, Inc. - - 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. */ - -int -main (int argc, char **argv) -{ - return 0; -} diff --git a/gdb/testsuite/gdb.server/Makefile.in b/gdb/testsuite/gdb.server/Makefile.in new file mode 100644 index 00000000000..0633edf4b81 --- /dev/null +++ b/gdb/testsuite/gdb.server/Makefile.in @@ -0,0 +1,24 @@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +EXECUTABLES = + +MISCELLANEOUS = + +all info install-info dvi install uninstall installcheck check: + @echo "Nothing to be done for $@..." + +clean mostlyclean: + -find . -name '*.o' -print | xargs rm -f + -find . -name '*.ali' -print | xargs rm -f + -find . -name 'b~*.ad[sb]' -print | xargs rm -f + -rm -f *~ a.out xgdb *.x *.ci *.tmp + -rm -f *~ *.o a.out xgdb *.x *.ci *.tmp + -rm -f core core.coremaker coremaker.core corefile $(EXECUTABLES) + -rm -f $(MISCELLANEOUS) twice-tmp.c + +distclean maintainer-clean realclean: clean + -rm -f *~ core + -rm -f Makefile config.status config.log + -rm -f *-init.exp + -rm -fr *.log summary detail *.plog *.sum *.psum site.* diff --git a/gdb/testsuite/gdb.server/server-run.exp b/gdb/testsuite/gdb.server/server-run.exp new file mode 100644 index 00000000000..e0085dc5936 --- /dev/null +++ b/gdb/testsuite/gdb.server/server-run.exp @@ -0,0 +1,42 @@ +# This testcase is part of GDB, the GNU debugger. + +# Copyright 2005 Free Software Foundation, Inc. + +# 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. + +# Test the basic functionality of gdbserver. + +load_lib gdbserver-support.exp + +set testfile "server" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +if { [skip_gdbserver_tests] } { + return 0 +} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + return -1 +} + +gdb_exit +gdb_start + +gdbserver_load $binfile "" +gdb_reinitialize_dir $srcdir/$subdir + +gdb_breakpoint main +gdb_test "continue" "Breakpoint.* main .*" "continue to main" diff --git a/gdb/testsuite/gdb.server/server.c b/gdb/testsuite/gdb.server/server.c new file mode 100644 index 00000000000..b6512633a9e --- /dev/null +++ b/gdb/testsuite/gdb.server/server.c @@ -0,0 +1,24 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2005 Free Software Foundation, Inc. + + 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. */ + +int +main (int argc, char **argv) +{ + return 0; +}