Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/x86_64/sys Restore RSP from mcontext



details:   https://anonhg.NetBSD.org/src/rev/b569992856fe
branches:  trunk
changeset: 941123:b569992856fe
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Oct 19 11:29:26 2020 +0000

description:
Restore RSP from mcontext

Fixes unwinding of multiple frames without base pointer.

Patch by: Nikhil Benesch via PR lib/55719

diffstat:

 lib/libc/arch/x86_64/sys/__sigtramp2.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 55f216e6dbed -r b569992856fe lib/libc/arch/x86_64/sys/__sigtramp2.S
--- a/lib/libc/arch/x86_64/sys/__sigtramp2.S    Mon Oct 19 10:28:47 2020 +0000
+++ b/lib/libc/arch/x86_64/sys/__sigtramp2.S    Mon Oct 19 11:29:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __sigtramp2.S,v 1.8 2020/10/12 17:55:54 kamil Exp $    */
+/*     $NetBSD: __sigtramp2.S,v 1.9 2020/10/19 11:29:26 kamil Exp $    */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -58,7 +58,7 @@
        .cfi_offset rsi, UC_GREGS_RSI
        .cfi_offset rdi, UC_GREGS_RDI
        .cfi_offset rbp, UC_GREGS_RBP
-       /* The unwinder will use the CFA to restore RSP. */
+       .cfi_offset rsp, UC_GREGS_RSP
        .cfi_offset r8,  UC_GREGS_R8
        .cfi_offset r9,  UC_GREGS_R9
        .cfi_offset r10, UC_GREGS_R10



Home | Main Index | Thread Index | Old Index