]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/corefile.exp
Test ability to access unwritten-to mmap data in core file
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / corefile.exp
index 34b903b350dca5a18c90376adc24abbebffdf44e..eaabe6c0f8c9f2414cc25bd21790bf354e7a6582 100644 (file)
@@ -175,6 +175,15 @@ gdb_test_multiple "x/8bd buf2" "$test" {
     }
 }
 
+# Test ability to read anonymous and, more importantly, unwritten-to
+# mmap'd data.
+
+if { ![istarget *-linux*] } {
+    setup_xfail "*-*-*"
+}
+gdb_test "x/wx buf3" "$hex:\[ \t\]+0x00000000" \
+        "accessing anonymous, unwritten-to mmap data"
+
 # test reinit_frame_cache
 
 gdb_load ${binfile}