mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
aec338d63b
commit
92d2a03f04
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
if (test_stack(start, end, info->stack_limit)) {
|
||||||
path = "[stack]";
|
path = "[stack]";
|
||||||
|
} else if (start == info->brk) {
|
||||||
|
path = "[heap]";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Except null device (MAP_ANON), adjust offset for this fragment. */
|
/* Except null device (MAP_ANON), adjust offset for this fragment. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue