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/c337205d56d7
branches:  trunk
changeset: 977252:c337205d56d7
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 8af724f3b4fd -r c337205d56d7 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