]> git.ipfire.org Git - thirdparty/valgrind.git/commit
When identifying stacks so as to decide whether or not to make a self
authorJulian Seward <jseward@acm.org>
Mon, 1 Aug 2005 23:25:55 +0000 (23:25 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 1 Aug 2005 23:25:55 +0000 (23:25 +0000)
commit22889784277b5e24e9ef1301a4cd827420c84d44
treeabc760765eef4a19d4a099fd8c050b4d378f5e73
parent28205a87e34e0e3e43966e82e162e03f8cc1d847
When identifying stacks so as to decide whether or not to make a self
checking translation in the case --smc-check=stack (the default),
don't use SF_GROWDOWN as an indication of stackness, since that only
is set for the main stack.  Instead establish whether code is being
taken from a stack by seeing if the requesting thread's stack pointer
points into the same area that the translation is being taken from.

This makes trampolining work even for threaded programs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4303
coregrind/m_translate.c