]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: /proc/<PID>/maps: print real shared region addresses
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Jan 2023 20:58:06 +0000 (21:58 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 17 Jan 2023 21:00:48 +0000 (22:00 +0100)
commit9ddd48ee1b8d736ebbd0b0bdf146ecf96774cd8a
treedaee5b30416f87373969425f2f76d6d05829cbd5
parent8d318bf142f7d740172099bfa23b6983eb8379ae
Cygwin: /proc/<PID>/maps: print real shared region addresses

So far, the addresses printed for the shared regions of a process
were faked.  The assumption was that the shared regions are always
in the same place in all processes, so we just printed the addresses
of the current process.  This is no safe bet.  The only safe bet is
the address of the cygheap.  So keep track of the addresses in the
cygheap and read the addresses from the cygheap of the observed
processes.  Add output for the shared console.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/fhandler/console.cc
winsup/cygwin/fhandler/process.cc
winsup/cygwin/local_includes/cygheap.h
winsup/cygwin/mm/shared.cc
winsup/cygwin/pinfo.cc
This page took 0.031478 seconds and 5 git commands to generate.