stack crawl w/MIPS compiler?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

stack crawl w/MIPS compiler?

2,028件の閲覧回数
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 返信

491件の閲覧回数
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 件の賞賛
返信