Oopenvela-robotassert: remove its noreturn declaration
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
assert: remove its noreturn declaration Currently, sometimes we cannot view the function parameters before the __assert function. This is because __assert is declared with noreturn, the compiler will not save the callee-saved registers of caller, and gdb cannot parse through the coredump. Therefore, we need to remove the noreturn declaration. __assert will call abort at the end, and abort is actually a noreturn function, so this does not change the actual behavior of __assert. To ensure the semantics of the PANIC and ASSERT macros remain unchanged and to prevent the compiler from incorrectly analyzing the original code, I added logic_unreachable to minimize the impact on the original semantics. Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com> | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 |