From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id CC937382DE01; Fri, 28 Oct 2022 14:27:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC937382DE01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666967271; bh=JwNZGeZDohRVnrguj/7JZ/insR1qnmiM18JVfQtJGPo=; h=From:To:Subject:Date:From; b=rT4QXXAgfHB3cSwHGAKhEjs/H2d916NRy1iEbAaI6vod7omQeyIHIcNiYOBxvoU3k 9TdHRJvSxzTiIVzbhJURGUT1XkaSb48ZNaNK59J63xCOe4MaS1E+xYGHezavuZxnOW gl6++CM2ztISjlFdPPnxcRtuSNwm5Y1sbnc4CZaA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: /proc//maps: output cygheap info X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: ebbff10ae1ba25c541be34213a6f7f9d9a2f2774 X-Git-Newrev: a3f1eff3882d54a0be9fa0f5114fde351ea6941e Message-Id: <20221028142751.CC937382DE01@sourceware.org> Date: Fri, 28 Oct 2022 14:27:51 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Da3f1eff3882= d54a0be9fa0f5114fde351ea6941e commit a3f1eff3882d54a0be9fa0f5114fde351ea6941e Author: Corinna Vinschen Date: Fri Oct 28 10:00:17 2022 +0200 Cygwin: /proc//maps: output cygheap info =20 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. =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/fhandler/process.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/cygwin/fhandler/process.cc b/winsup/cygwin/fhandler/pro= cess.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 =3D=3D (char *) *proc_pinfo) strcpy (posix_modname, "[procinfo]"); + else if (cur.abase =3D=3D (char *) cygheap) + strcpy (posix_modname, "[cygheap]"); else if (cur.abase =3D=3D user_heap.base) strcpy (posix_modname, "[heap]"); else