HomeFreeBSD

dtrace/powerpc: "Fix" stack traces across trap frames

Description

dtrace/powerpc: "Fix" stack traces across trap frames

In function boundary tracing the link register is not yet saved to the
save stack location, so the save point contains whatever the previous
'lr' save was, or even garbage, at the time the trap is taken. Address
this by explicitly loading the link register from the trap frame instead
of the stack, and propagate that out.

(cherry picked from commit 3e1155ade1baab51458374efd0295bdf6db455fc)
(cherry picked from commit e620e088cbd1c062655eee825aaf4f80bd255e1f)

Details

Provenance
jhibbitsAuthored on Mar 11 2023, 4:30 PM
Parents
rGaa728e209458: sqlite3: Vendor import of sqlite3 3.41.0
Branches
Unknown
Tags
Unknown