public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: /proc/<PID>/maps: output cygheap info
@ 2022-10-28 14:27 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-10-28 14:27 UTC (permalink / raw)
  To: cygwin-cvs;h=a3f1eff3882d54a0be9fa0f5114fde351ea6941e

commit a3f1eff3882d54a0be9fa0f5114fde351ea6941e
Author: Corinna Vinschen <>
Date:   Fri Oct 28 10:00:17 2022 +0200

    Cygwin: /proc/<PID>/maps: output cygheap info
    Now that the cygheap isn't part of the CYgwin DLL anymore, we have a
    known memory location which is not known in maps output.  Fix that by
    checking for cygheap address (same in all processes) and add to output.
    Signed-off-by: Corinna Vinschen <>

 winsup/cygwin/fhandler/ | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/cygwin/fhandler/ b/winsup/cygwin/fhandler/
index c8ca6e25a..a8c17f1b0 100644
--- a/winsup/cygwin/fhandler/
+++ b/winsup/cygwin/fhandler/
@@ -1066,6 +1066,8 @@ peb_teb_rinse_repeat:
 		    strcpy (posix_modname, "[cygwin-user-shared]");
 		  else if (cur.abase == (char *) *proc_pinfo)
 		    strcpy (posix_modname, "[procinfo]");
+		  else if (cur.abase == (char *) cygheap)
+		    strcpy (posix_modname, "[cygheap]");
 		  else if (cur.abase == user_heap.base)
 		    strcpy (posix_modname, "[heap]");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-28 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 14:27 [newlib-cygwin] Cygwin: /proc/<PID>/maps: output cygheap info Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).