Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/i386/sys Restore ESP from mcontext



details:   https://anonhg.NetBSD.org/src/rev/5ddc8f91301a
branches:  trunk
changeset: 941124:5ddc8f91301a
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon Oct 19 11:31:01 2020 +0000

description:
Restore ESP from mcontext

Improves unwinding of multiple frames without base pointer.

diffstat:

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

diffs (18 lines):

diff -r b569992856fe -r 5ddc8f91301a lib/libc/arch/i386/sys/__sigtramp2.S
--- a/lib/libc/arch/i386/sys/__sigtramp2.S      Mon Oct 19 11:29:26 2020 +0000
+++ b/lib/libc/arch/i386/sys/__sigtramp2.S      Mon Oct 19 11:31:01 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __sigtramp2.S,v 1.6 2020/10/12 23:56:08 kamil Exp $    */
+/*     $NetBSD: __sigtramp2.S,v 1.7 2020/10/19 11:31:01 kamil Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
        .cfi_offset ecx, UC_GREGS_ECX
        .cfi_offset edx, UC_GREGS_EDX
        .cfi_offset ebx, UC_GREGS_EBX
-       /* The unwinder will use the CFA to restore ESP. */
+       .cfi_offset esp, UC_GREGS_ESP
        .cfi_offset ebp, UC_GREGS_EBP
        .cfi_offset esi, UC_GREGS_ESI
        .cfi_offset edi, UC_GREGS_EDI



Home | Main Index | Thread Index | Old Index