DragonFly BSD
DragonFly commits List (threaded) for 2009-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Unbreak ptrace on x86_64


From: Aggelos Economopoulos <aggelos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Dec 2009 05:02:11 -0800 (PST)

commit 95a5b34936ae88313dea47593a1e7033561ca997
Author: Aggelos Economopoulos <aoiko@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]