linux-user: fix multi-threaded /proc/self/maps
commit1bdd7c7ea8a711efcb5141663865cc1f7e4e824d
authorAlexander Graf <agraf@suse.de>
Wed, 30 May 2012 12:45:21 +0000 (30 14:45 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 12 Oct 2012 10:58:13 +0000 (12 13:58 +0300)
tree79a4d6f08dd56e7f5d27cc7db2cb976187db72d9
parent229d3376a38bf97aa09b6f73a957c5389badcd06
linux-user: fix multi-threaded /proc/self/maps

When reading our faked /proc/self/maps from a secondary thread,
we get an invalid stack entry. This is because ts->stack_base is not
initialized in non-primary threads.

However, ts->info is, and the stack layout information we're looking
for is there too. So let's use that one instead!

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c