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/51fa2065c177
branches:  trunk
changeset: 324762:51fa2065c177
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 676f298f813d -r 51fa2065c177 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