diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 10:00:17 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-10-28 16:26:53 +0200 |
commit | a3f1eff3882d54a0be9fa0f5114fde351ea6941e (patch) | |
tree | 061255ca64f72be14640caddaf3034316ee68ea1 | |
parent | ebbff10ae1ba25c541be34213a6f7f9d9a2f2774 (diff) | |
download | newlib-a3f1eff3882d54a0be9fa0f5114fde351ea6941e.zip newlib-a3f1eff3882d54a0be9fa0f5114fde351ea6941e.tar.gz newlib-a3f1eff3882d54a0be9fa0f5114fde351ea6941e.tar.bz2 |
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>
-rw-r--r-- | winsup/cygwin/fhandler/process.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler/process.cc b/winsup/cygwin/fhandler/process.cc index c8ca6e2..a8c17f1 100644 --- a/winsup/cygwin/fhandler/process.cc +++ b/winsup/cygwin/fhandler/process.cc @@ -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 |