diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-08-07 13:26:33 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-08-07 13:26:33 +0000 |
commit | 4f69f4c267a21e787685116945fb40729a7297a5 (patch) | |
tree | ccffd19fbc910eedac303b46c8c4bad9db964b76 /gdb/gnu-nat.c | |
parent | 82435b3b3da1b288ca2d2596a9de40e6bc734773 (diff) | |
download | gdb-4f69f4c267a21e787685116945fb40729a7297a5.zip gdb-4f69f4c267a21e787685116945fb40729a7297a5.tar.gz gdb-4f69f4c267a21e787685116945fb40729a7297a5.tar.bz2 |
gdb/
PR 11804
* defs.h (find_memory_region_ftype): New comment. New arg modified.
* fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
* gcore.c (gcore_create_callback): New function comment. Add modified
parameter. Only write modified regions. Set SEC_READONLY exactly
according to MODIFIED.
(objfile_find_memory_regions): Ignore separate debug info files. Ass
the passed modified value to FUNC.
* gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
* linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
first. New variables modified and has_anonymous. Parse the lines of
smaps file. Add the passed MODIFIED value to FUNC.
* procfs.c (find_memory_regions_callback): Add the passed modified
value.
gdb/testsuite/
PR 11804
* gdb.base/gcore-relro.exp: New file.
* gdb.base/gcore-relro-main.c: New file.
* gdb.base/gcore-relro-lib.c: New file.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 0c45f20..5a653cf 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -2558,6 +2558,7 @@ gnu_find_memory_regions (find_memory_region_ftype func, void *data) last_protection & VM_PROT_READ, last_protection & VM_PROT_WRITE, last_protection & VM_PROT_EXECUTE, + 1, /* MODIFIED is unknown, pass it as true. */ data); last_region_address = region_address; last_region_end = region_address += region_length; @@ -2571,6 +2572,7 @@ gnu_find_memory_regions (find_memory_region_ftype func, void *data) last_protection & VM_PROT_READ, last_protection & VM_PROT_WRITE, last_protection & VM_PROT_EXECUTE, + 1, /* MODIFIED is unknown, pass it as true. */ data); return 0; |