]> git.ipfire.org Git - thirdparty/valgrind.git/commit
coregrind/m_debuglog.c: fix incorrect inline assembly for amd64-linux.
authorJulian Seward <jseward@acm.org>
Fri, 9 Mar 2018 18:03:26 +0000 (19:03 +0100)
committerJulian Seward <jseward@acm.org>
Fri, 9 Mar 2018 18:03:26 +0000 (19:03 +0100)
commit6b92194acabdcdc44ce86c748dc6523a7071e369
tree6aa1c787ad178808f733953dc78666abee6bf5f9
parentec34f1a35b27d38ba9a2dfab7b717d5b4f56a69d
coregrind/m_debuglog.c: fix incorrect inline assembly for amd64-linux.

This adds rcx and r11 to the trash lists for inline assembly in
local_sys_write_stderr and local_sys_getpid, since those registers are not
preserved across the embedded syscall that takes us into the kernel.  I
believe this to be the root cause of the apparent code generation bug
addressed in 53faacfda4ad6a27bc0e8ab859c1cc5388a61a5e (16 Nov 2017).  This
commit also undoes that commit, because I think it is no longer necessary.
coregrind/m_debuglog.c