public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: /proc/<PID>/maps: output cygheap info
Date: Fri, 28 Oct 2022 14:27:51 +0000 (GMT)	[thread overview]
Message-ID: <20221028142751.CC937382DE01@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a3f1eff3882d54a0be9fa0f5114fde351ea6941e

commit a3f1eff3882d54a0be9fa0f5114fde351ea6941e
Author: Corinna Vinschen <corinna@vinschen.de>
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 <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler/process.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/cygwin/fhandler/process.cc b/winsup/cygwin/fhandler/process.cc
index c8ca6e25a..a8c17f1b0 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

                 reply	other threads:[~2022-10-28 14:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221028142751.CC937382DE01@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).