diff options
author | 2018-11-14 00:47:24 +0000 | |
---|---|---|
committer | 2018-11-14 00:47:24 +0000 | |
commit | 27be42000ee0fb8a42313fef1d2c0f1ea7624510 (patch) | |
tree | e724114e97670a192fcdc6cbb2f14818e9a384bd /cortex-m-rt/tests/compile-fail/hard-fault-twice.rs | |
parent | 3f2031c2889e7f6a581e476b8cf918f1cfa14de0 (diff) | |
parent | b46b29f54f89bf1051505f1d53d53cca86c46196 (diff) | |
download | cortex-m-27be42000ee0fb8a42313fef1d2c0f1ea7624510.tar.gz cortex-m-27be42000ee0fb8a42313fef1d2c0f1ea7624510.tar.zst cortex-m-27be42000ee0fb8a42313fef1d2c0f1ea7624510.zip |
Merge #144
144: [RFC] rename UserHardFault to HardFault r=adamgreig a=japaric
so it matches the exception name (`#[exception] fn HardFault(..`)
Right now the symbol name of all exception handlers match the name of the
function used with the `#[exception]` attribute *except* for `HardFault`, whose
symbol name actually is `UserHardFault`.
This PR corrects that inconsistency by renaming the `UserHardFault` symbol to
`HardFault`, and the `HardFault` symbol to `HardFaultTrampoline`.
This change doesn't break compilation or changes functionality but it does soft
break GDB scripts that include the command `break UserHardFault` (e.g. the GDB
script in cortex-m-quickstart) in the sense that the breakpoint will no longer
work. However the rest of the GDB script will continue to work.
RFC questions: (a) do we want to do this rename? (b) if the answer is yes, do we
want to include this rename in the v0.5.x release, or should we consider it a
breaking change and postpone it until v0.6.0?
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/hard-fault-twice.rs')
-rw-r--r-- | cortex-m-rt/tests/compile-fail/hard-fault-twice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs index 0bb6c8c..030b54c 100644 --- a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs +++ b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs @@ -19,7 +19,7 @@ fn HardFault(_ef: &ExceptionFrame) -> ! { pub mod reachable { use cortex_m_rt::{exception, ExceptionFrame}; - #[exception] //~ ERROR symbol `UserHardFault` is already defined + #[exception] //~ ERROR symbol `HardFault` is already defined fn HardFault(_ef: &ExceptionFrame) -> ! { loop {} } |