From: Richard Henderson Date: Wed, 16 Aug 2023 17:33:28 +0000 (-0700) Subject: linux-user: Show heap address in /proc/pid/maps X-Git-Tag: v8.2.0-rc0~143^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92d2a03f045f833fa96d8d1ed909d2bce68cefea;p=thirdparty%2Fqemu.git linux-user: Show heap address in /proc/pid/maps Tested-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Ilya Leoshkevich Signed-off-by: Richard Henderson --- diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0b91f996b71..0641d8f4339 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8125,6 +8125,8 @@ static void open_self_maps_4(const struct open_self_maps_data *d, if (test_stack(start, end, info->stack_limit)) { path = "[stack]"; + } else if (start == info->brk) { + path = "[heap]"; } /* Except null device (MAP_ANON), adjust offset for this fragment. */