stack crawl w/MIPS compiler?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

stack crawl w/MIPS compiler?

2,030 次查看
pgj
Contributor I
I'm trying to figure out how to obtain a stack trace programatically. I.e. I want to write a routine that can determine its caller, caller's caller, etc.

It appears that MIPS has no explicit frame pointer, which would make this a trival task. Is there support for this? Obviously the Metrowerks debugger can figure this out, but I need to do this within the application for diagnostics.

Thanks in advance,

/PGJ
标签 (1)
0 项奖励
回复
1 回复

493 次查看
CompilerGuru
NXP Employee
NXP Employee
not sure if it helps, but check how C++ code implements throw.
Some implementations do actually traverse the stack with special datastructures provided by the compiler while others do build a dynamic data structure (which would not help you much). I dont know MIPS at all tough.

Daniel
0 项奖励
回复