This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/66AK2H12:在用户异常时获取特殊寄存器值

Guru**** 2928980 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/668164/compiler-66ak2h12-getting-special-registers-value-at-the-time-of-user-exception

器件型号:66AK2H12

工具/软件:TI C/C++编译器

您好!

 

我们在 DSP 代码上使用用户定义的异常(DSP 内核类型 C6678、编译器版本 C6000_7.4.18)、并希望在异常发生时取出栈跟踪。

我们需要使用以下指南获取堆栈跟踪

http://processors.wiki.ti.com/index.php/Crash_Dump_Analysis

 

要创建崩溃转储、我们需要知道发生异常时的寄存器值。

是否有任何 API 可读取 A0-A31和 B0-B31寄存器的值?

我们应该编写 asm 代码来实现这一点吗?