diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:20:12 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-14 21:20:12 +0000 |
commit | 55235ad79093bbe6b7b797c4a6f14f9da46c1368 (patch) | |
tree | 4ab94b16fed67f5a36c7f17ca17c3ae23a8d7f16 /gdb/testsuite | |
parent | 4175219298aa7428db899c2f7022146cf8482885 (diff) | |
download | gdb-55235ad79093bbe6b7b797c4a6f14f9da46c1368.zip gdb-55235ad79093bbe6b7b797c4a6f14f9da46c1368.tar.gz gdb-55235ad79093bbe6b7b797c4a6f14f9da46c1368.tar.bz2 |
gdb/
* linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
(check_is_pie_binary, _initialize_linux_tdep): Remove.
gdb/testsuite/
* gdb.base/pie-support.exp, gdb.base/pie-support.c: Remove.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/pie-support.c | 34 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/pie-support.exp | 58 |
3 files changed, 4 insertions, 92 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c9405ae..e81c4e9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> + * gdb.base/pie-support.exp, gdb.base/pie-support.c: Remove. + +2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> + * gdb.base/valgrind-db-attach.exp, gdb.base/valgrind-db-attach.c: New. 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com> diff --git a/gdb/testsuite/gdb.base/pie-support.c b/gdb/testsuite/gdb.base/pie-support.c deleted file mode 100644 index 2049132..0000000 --- a/gdb/testsuite/gdb.base/pie-support.c +++ /dev/null @@ -1,34 +0,0 @@ -/* This testcase is part of GDB, the GNU debugger. - - Copyright 2009, 2010 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 3 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, see <http://www.gnu.org/licenses/>. - -*/ - -#include <stdio.h> - -void -f1 (int a) -{ - printf ("a = %d\n", a); -} - -int -main (int argc, char *argv[]) -{ - f1 (1); - - return 0; -} diff --git a/gdb/testsuite/gdb.base/pie-support.exp b/gdb/testsuite/gdb.base/pie-support.exp deleted file mode 100644 index 79e0681..0000000 --- a/gdb/testsuite/gdb.base/pie-support.exp +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 2009, 2010 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 3 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, see <http://www.gnu.org/licenses/>. - -set testfile pie-support -set srcfile ${testfile}.c -set objfile ${objdir}/${subdir}/${testfile}.o -set binfile ${objdir}/${subdir}/${testfile} - -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {quiet debug additional_flags=-fpie}] != "" } { - untested "Couldn't compile test PIE object file." - return -1 -} -if { [gdb_compile "${objfile}" "${binfile}" executable {quiet debug additional_flags=-pie}] != "" } { - untested "Couldn't compile test PIE binary." - return -1 -} - -# Get things started. - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir - -if [is_remote host] { - set binfile [remote_download host $binfile] - if { $binfile == "" } { - untested "Couldn't download remote test binary." - return -1 - } -} - -# The file command used to kill the remote target. For the benefit -# of the testsuite, preserve this behavior. -send_gdb "kill\n" -gdb_expect 120 { - -re "Kill the program being debugged. .y or n. $" { - send_gdb "y\n" - verbose "\t\tKilling previous program being debugged" - exp_continue - } - -re "$gdb_prompt $" { - # OK. - } -} - -gdb_test "file $binfile" "current binary is a PIE.*" "correctly detected PIE binary" |