4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Jon Turney 35227fec97
Cygwin: Don't dump non-writable image regions
After this, we will end up dumping memory regions where:

- state is MEM_COMMIT (i.e. is not MEM_RESERVE or MEM_FREE), and
-- type is MEM_PRIVATE and protection allows reads (i.e. not a guardpage), or
-- type is MEM_IMAGE and protection allows writes

Making this decision based on the current protection isn't 100% correct,
because it may have been changed using VirtualProtect().  But we don't
know how to determine if a region is shareable.

(As a practical matter, anything which gets us the stack (MEM_PRIVATE)
and .data/.bss (RW MEM_IMAGE) is going to be enough for 99% of cases)
2020-07-21 15:19:42 +01:00
..
2013-11-07 00:19:52 +00:00
2012-11-23 13:22:47 +00:00
2018-12-26 09:24:33 +01:00
2019-06-04 11:31:54 -04:00
2018-01-19 13:19:21 -06:00
2016-08-17 10:58:04 +02:00
2018-12-26 09:24:33 +01:00
2016-10-23 17:16:30 +02:00