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 <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-10-28 10:00:17 +02:00
parent ebbff10ae1
commit a3f1eff388
1 changed files with 2 additions and 0 deletions

View 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