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.
This commit is contained in:
parent
3cd07d204b
commit
86e4bafc3b
7 changed files with 281 additions and 22 deletions
47
gdb/testsuite/gdb.base/attach-pie-misread.c
Normal file
47
gdb/testsuite/gdb.base/attach-pie-misread.c
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue