]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mips: fix call_on_new_stack_0_1 code
authorPetar Jovanovic <mips32r2@gmail.com>
Thu, 1 Dec 2016 16:01:45 +0000 (16:01 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 1 Dec 2016 16:01:45 +0000 (16:01 +0000)
commit7746f34db7b620cee440dc3bded19b6d62529b9b
tree5488e53d8edca38d0a34fd63ba2008c4ab3a35ed
parentf6699cd906a918f9c20631f33ccfe1fec5204c27
mips: fix call_on_new_stack_0_1 code

MIPS32 implementation missed to set up a correct (zero) return address.
This led to incorrect execution of get_StackTrace_wrk as it was not
able to unwind stack correctly.
This change fixes memcheck/tests/leak-autofreepool-5.

MIPS64 implementation missed clearing all integer registers before
entering the function.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16166
coregrind/m_syswrap/syswrap-mips32-linux.c
coregrind/m_syswrap/syswrap-mips64-linux.c