]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: /proc/<PID>/maps: output cygheap info
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Oct 2022 08:00:17 +0000 (10:00 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 28 Oct 2022 14:26:53 +0000 (16:26 +0200)
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 <corinna@vinschen.de>
winsup/cygwin/fhandler/process.cc

index c8ca6e25a5b23383cd273b345bb94d40cce20796..a8c17f1b0c56ddcd3efe61ad865be90be6412b6e 100644 (file)
@@ -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]");
                  else
This page took 0.032779 seconds and 5 git commands to generate.