Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linux-user: Show heap address in /proc/pid/maps
Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed Sep 1, 2023
1 parent aec338d commit 92d2a03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linux-user/syscall.c
Expand Up @@ -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. */
Expand Down

0 comments on commit 92d2a03

Please sign in to comment.