diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-07-05 18:00:40 +0000 |
commit | 86e4bafc3b0bb0148b95807d37b36aae14cdf56c (patch) | |
tree | fae9aeadc3fef5cca2aa8c66596edfa5c6a48169 /gdb/testsuite/gdb.base/attach-pie-misread.c | |
parent | 3cd07d204baadc4b3d148a7494366fc92e7d42b1 (diff) | |
download | fsf-binutils-gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.zip fsf-binutils-gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.gz fsf-binutils-gdb-86e4bafc3b0bb0148b95807d37b36aae14cdf56c.tar.bz2 |
gdb/
* auxv.c (memory_xfer_auxv): Update attach comment.
* solib-svr4.c (svr4_special_symbol_handling): Remove the call to
svr4_relocate_main_executable.
(svr4_solib_create_inferior_hook): Make the call to
svr4_relocate_main_executable unconditional.
gdb/testsuite/
* gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New.
* gdb.base/break-interp.exp (reach, test_core, test_ld): Require each
displacement message exactly once.
Diffstat (limited to 'gdb/testsuite/gdb.base/attach-pie-misread.c')
-rw-r--r-- | gdb/testsuite/gdb.base/attach-pie-misread.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/attach-pie-misread.c b/gdb/testsuite/gdb.base/attach-pie-misread.c new file mode 100644 index 0000000..32908a4 --- /dev/null +++ b/gdb/testsuite/gdb.base/attach-pie-misread.c @@ -0,0 +1,47 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 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> +#include <unistd.h> + +const char stub[] = { +#ifdef GEN +# include GEN +#endif +}; + +int +main (int argc, char **argv) +{ + /* Generator of GEN written in Python takes about 15s for x86_64's 4MB. */ + if (argc == 2) + { + long count = strtol (argv[1], NULL, 0); + + while (count-- > 0) + puts ("0x55,"); + + return 0; + } + if (argc != 1) + return 1; + + puts ("sleeping"); + fflush (stdout); + + return sleep (60); +} |