diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2011-10-18 14:00:42 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2011-10-18 14:00:42 +0000 |
commit | 4313697959ffcaf3bf59556ef690914d0d7b84c3 (patch) | |
tree | 05e96c58735795e00e46f434bbba79056646090c /gdb/testsuite/gdb.base/attach-pie-noexec.c | |
parent | 9b0f109b0a400247d9c001cb815572e03cedb7f0 (diff) | |
download | gdb-4313697959ffcaf3bf59556ef690914d0d7b84c3.zip gdb-4313697959ffcaf3bf59556ef690914d0d7b84c3.tar.gz gdb-4313697959ffcaf3bf59556ef690914d0d7b84c3.tar.bz2 |
* solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
pt_phdr if PT_PHDR was found.
* gdb.base/attach-pie-noexec.c: New files.
* gdb.base/attach-pie-noexec.exp: New files.
Diffstat (limited to 'gdb/testsuite/gdb.base/attach-pie-noexec.c')
-rw-r--r-- | gdb/testsuite/gdb.base/attach-pie-noexec.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/attach-pie-noexec.c b/gdb/testsuite/gdb.base/attach-pie-noexec.c new file mode 100644 index 0000000..7f430ab --- /dev/null +++ b/gdb/testsuite/gdb.base/attach-pie-noexec.c @@ -0,0 +1,25 @@ +/* This testcase is part of GDB, the GNU debugger. + + Copyright 2011 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 <unistd.h> + +int +main (void) +{ + sleep (600); + return 0; +} |