Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libunwind Remove redundant setIP call overwritten a ...



details:   https://anonhg.NetBSD.org/src/rev/7764c30dfb27
branches:  trunk
changeset: 320758:7764c30dfb27
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jul 17 18:58:58 2018 +0000

description:
Remove redundant setIP call overwritten a few lines later.

diffstat:

 sys/lib/libunwind/DwarfInstructions.hpp |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 040f1eecabec -r 7764c30dfb27 sys/lib/libunwind/DwarfInstructions.hpp
--- a/sys/lib/libunwind/DwarfInstructions.hpp   Tue Jul 17 18:58:10 2018 +0000
+++ b/sys/lib/libunwind/DwarfInstructions.hpp   Tue Jul 17 18:58:58 2018 +0000
@@ -153,7 +153,6 @@
   // The CFA is defined as the stack pointer at the call site.
   // Therefore the SP is restored by setting it to the CFA.
   newRegisters.setSP(cfa);
-  newRegisters.setIP(returnAddress + R::RETURN_OFFSET);
   returnAddress += R::RETURN_OFFSET;
   returnAddress &= ~R::RETURN_MASK;
   newRegisters.setIP(returnAddress);



Home | Main Index | Thread Index | Old Index