Add test for accessing read-only mmapped data in a core file
authorKevin Buettner <kevinb@redhat.com>
Tue, 16 Jun 2020 18:39:22 +0000 (11:39 -0700)
committerKevin Buettner <kevinb@redhat.com>
Wed, 22 Jul 2020 19:47:30 +0000 (12:47 -0700)
commitf9e233c9c465dd4fdbfda4839c45fb624723b604
treece95570278281575074683e5df03a8e05a01818c
parentdb082f5979ff95409b7de7a2a96d083f2642c8c3
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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/corefile.exp
gdb/testsuite/gdb.base/coremaker.c
This page took 0.02846 seconds and 4 git commands to generate.