diff options
author | Kevin Buettner <kevinb@redhat.com> | 2020-07-03 20:10:22 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2020-07-22 12:49:18 -0700 |
commit | 9c5ec5c2dab18154b44a7bbb430cc7d393424116 (patch) | |
tree | d2333e87fb35d8788a35b27a13b366071ea9a567 /gdb/objfiles.c | |
parent | 4ba11f89a259ffa8dc90f4e8d9bca55f2fcb6483 (diff) | |
download | gdb-9c5ec5c2dab18154b44a7bbb430cc7d393424116.zip gdb-9c5ec5c2dab18154b44a7bbb430cc7d393424116.tar.gz gdb-9c5ec5c2dab18154b44a7bbb430cc7d393424116.tar.bz2 |
Adjust coredump-filter.exp to account for NT_FILE note handling
This commit makes adjustments to coredump-filter.exp to account
for the fact that NT_FILE file-backed mappings are now available
when a core file is loaded. Thus, a test which was expected
to PASS when a memory region was determined to be unavailable
(due to no file-backed mappings being available) will now FAIL
due to those mappings being available from having loaded the
NT_FILE note.
I had originally marked the test as XFAIL, but Mihails Strasuns
suggested a much better approach:
1) First test that it still works if file is accessible in the
filesystem.
2) Temporarily move / rename the file and test that disassembly
doesn't work anymore.
That's what this commit implements.
gdb/testsuite/ChangeLog:
* gdb.base/coredump-filter.exp: Add second
non-Private-Shared-Anon-File test.
(test_disasm): Rename binfile for test which is expected
to fail.
Diffstat (limited to 'gdb/objfiles.c')
0 files changed, 0 insertions, 0 deletions