diff options
author | Kevin Buettner <kevinb@redhat.com> | 2020-06-16 11:39:22 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2020-07-22 12:47:30 -0700 |
commit | f9e233c9c465dd4fdbfda4839c45fb624723b604 (patch) | |
tree | ce95570278281575074683e5df03a8e05a01818c /gdb/linux-tdep.c | |
parent | db082f5979ff95409b7de7a2a96d083f2642c8c3 (diff) | |
download | gdb-f9e233c9c465dd4fdbfda4839c45fb624723b604.zip gdb-f9e233c9c465dd4fdbfda4839c45fb624723b604.tar.gz gdb-f9e233c9c465dd4fdbfda4839c45fb624723b604.tar.bz2 |
Add test for accessing read-only mmapped data in a core file
This test passes when run using a GDB with my corefile patches. When
run against a GDB without my patches, I see the following failures,
the first of which is due to the test added by this commit:
FAIL: gdb.base/corefile.exp: accessing read-only mmapped data in core file (mapping address not found in core file)
FAIL: gdb.base/corefile.exp: accessing anonymous, unwritten-to mmap data
gdb/testsuite/ChangeLog:
* gdb.base/corefile.exp: Add test "accessing read-only mmapped
data in core file".
* gdb.base/coremaker.c (buf2ro): New global.
(mmapdata): Add a read-only mmap mapping.
Diffstat (limited to 'gdb/linux-tdep.c')
0 files changed, 0 insertions, 0 deletions