mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Add proper unwind information.
2004-01-22 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind information.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-01-22 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/setcontext.S: Add proper unwind
|
||||||
|
information.
|
||||||
|
|
||||||
2004-01-20 Ulrich Drepper <drepper@redhat.com>
|
2004-01-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
|
* sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Install given context.
|
/* Install given context.
|
||||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 2002.
|
Contributed by Andreas Jaeger <aj@suse.de>, 2002.
|
||||||
|
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
ENTRY(__setcontext)
|
ENTRY(__setcontext)
|
||||||
/* Save argument since syscall will destroy it. */
|
/* Save argument since syscall will destroy it. */
|
||||||
pushq %rdi
|
pushq %rdi
|
||||||
|
cfi_adjust_cfa_offset(8)
|
||||||
|
|
||||||
/* Set the signal mask with
|
/* Set the signal mask with
|
||||||
rt_sigprocmask (SIG_SETMASK, mask, NULL, _NSIG/8). */
|
rt_sigprocmask (SIG_SETMASK, mask, NULL, _NSIG/8). */
|
||||||
@@ -45,6 +46,7 @@ ENTRY(__setcontext)
|
|||||||
movq $__NR_rt_sigprocmask, %rax
|
movq $__NR_rt_sigprocmask, %rax
|
||||||
syscall
|
syscall
|
||||||
popq %rdi /* Reload %rdi, adjust stack. */
|
popq %rdi /* Reload %rdi, adjust stack. */
|
||||||
|
cfi_adjust_cfa_offset(-8)
|
||||||
cmpq $-4095, %rax /* Check %rax for error. */
|
cmpq $-4095, %rax /* Check %rax for error. */
|
||||||
jae SYSCALL_ERROR_LABEL /* Jump to error handler if error. */
|
jae SYSCALL_ERROR_LABEL /* Jump to error handler if error. */
|
||||||
|
|
||||||
@@ -57,6 +59,16 @@ ENTRY(__setcontext)
|
|||||||
|
|
||||||
/* Load the new stack pointer, the preserved registers and
|
/* Load the new stack pointer, the preserved registers and
|
||||||
registers used for passing args. */
|
registers used for passing args. */
|
||||||
|
cfi_def_cfa(%rdi, 0)
|
||||||
|
cfi_offset(%rbx,oRBX)
|
||||||
|
cfi_offset(%rbp,oRBP)
|
||||||
|
cfi_offset(%r12,oR12)
|
||||||
|
cfi_offset(%r13,oR13)
|
||||||
|
cfi_offset(%r14,oR14)
|
||||||
|
cfi_offset(%r15,oR15)
|
||||||
|
cfi_offset(%rsp,oRSP)
|
||||||
|
cfi_offset(%rip,oRIP)
|
||||||
|
|
||||||
movq oRSP(%rdi), %rsp
|
movq oRSP(%rdi), %rsp
|
||||||
movq oRBX(%rdi), %rbx
|
movq oRBX(%rdi), %rbx
|
||||||
movq oRBP(%rdi), %rbp
|
movq oRBP(%rdi), %rbp
|
||||||
@@ -79,6 +91,10 @@ ENTRY(__setcontext)
|
|||||||
/* Setup finally %rdi. */
|
/* Setup finally %rdi. */
|
||||||
movq oRDI(%rdi), %rdi
|
movq oRDI(%rdi), %rdi
|
||||||
|
|
||||||
|
/* End FDE here, we fall into another context. */
|
||||||
|
cfi_endproc
|
||||||
|
cfi_startproc
|
||||||
|
|
||||||
/* Clear rax to indicate success. */
|
/* Clear rax to indicate success. */
|
||||||
xorq %rax, %rax
|
xorq %rax, %rax
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user