Message ID | 20230816181437.572997-5-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show |
Series | linux-user: Rewrite open_self_maps | expand |
On 16/8/23 20:14, Richard Henderson wrote: > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > linux-user/syscall.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 658c276e39..5c0fb20e19 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. */
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+)