aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compile-fail/unsafe-init-static.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-11-23 15:40:29 +0000
committerGravatar GitHub <noreply@github.com> 2021-11-23 15:40:29 +0000
commitecf840b80bcc52b426afe93dba9b6d563adbbfce (patch)
treea9a74e96193739b331c5e6778a407abbe210b64c /cortex-m-rt/tests/compile-fail/unsafe-init-static.rs
parent008fd73a1bb8e3d6f635b8aeeb96c57621e52c54 (diff)
parentb38af9d1b6ddd90e2d9a427179bd54e19095d8f6 (diff)
downloadcortex-m-ecf840b80bcc52b426afe93dba9b6d563adbbfce.tar.gz
cortex-m-ecf840b80bcc52b426afe93dba9b6d563adbbfce.tar.zst
cortex-m-ecf840b80bcc52b426afe93dba9b6d563adbbfce.zip
Merge #337
337: Fix unwinding through `Reset` r=thejpster a=jonas-schievink Unwinders may detect the end of the program by seeing `0xFFFFFFFF` in `lr`, which is why code to ensure that it has that value was added in https://github.com/rust-embedded/cortex-m-rt/pull/293. However, the `bl main` overwrites that value with the current program counter. This PR saves the old `lr` value on the stack, and adds debuginfo entries to allow an external unwinder to restore the value. This fixes https://github.com/knurling-rs/probe-run/issues/277 Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/unsafe-init-static.rs')
0 files changed, 0 insertions, 0 deletions