Mor-sarid, Nitzan 569333293a Fix the way to get main thread stack start address.
For previous way to get the stack using the [stack] string from
/proc/self/task/<pid>/maps is not enough. On x86/x86_64, if an
alternative signal stack is used while a task switch happens,
the [stack] indicator may no longer be correct.

Instead, stack_start from /proc/self/stat which is always inside
the main stack, is used to find the main stack in /proc/self/maps.

Change-Id: Ieb010e71518b57560d541cd3b3563e5aa9660750
Signed-off-by: Nitzan Mor-sarid <nitzan.mor-sarid@intel.com>
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com>
2015-09-16 11:45:13 -07:00
..
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-09-02 17:23:31 -07:00
2015-08-18 15:09:00 -07:00
2015-07-27 11:04:58 -07:00
2015-08-25 12:46:33 +01:00
2015-08-26 14:48:55 -07:00
2015-08-28 20:23:52 -07:00
2015-08-26 14:48:55 -07:00
2015-05-07 15:12:24 -07:00