git: Unbreak ptrace on x86_64

Aggelos Economopoulos aggelos at crater.dragonflybsd.org
Tue Dec 1 05:03:34 PST 2009


commit 95a5b34936ae88313dea47593a1e7033561ca997
Author: Aggelos Economopoulos <aoiko at cc.ece.ntua.gr>
Date:   Tue Dec 1 14:46:09 2009 +0200

    Unbreak ptrace on x86_64
    
    The asm code was calling __tls_get_addr in order to set errno to 0
    before the system call and that was trashing registers holding the
    syscall arguments. Don't bother setting errno to 0 anymore (the
    in-tree users are careful to set that themselves when appropriate).
    While here, declare it properly as a weak symbol. At this point we
    could just drop the hand-written assembly.
    
    Proxies-to-x86_64-dfly: Antonio Huete Jimenez, Jan Lentfer
    Dragonfly-bug: http://bugs.dragonflybsd.org/issue1571

Summary of changes:
 lib/libc/x86_64/sys/ptrace.S |   34 ++++++++++------------------------
 1 files changed, 10 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95a5b34936ae88313dea47593a1e7033561ca997


-- 
DragonFly BSD source repository





More information about the Commits mailing list