Create  Edit  Diff  FrontPage  Index  Search  Changes  Login

C でバックトレースを表示する

Windows

tlhelp32.h あたりになかったっけ。

GCC

__builtin_frame_address たどってく感じで 他アーキテクチャでもいけるのかなぁ。 明らかにいけなさそうなのもあるわけだけど。 (TODO: あとで)

D言語 & x86

asm がいらなかったりする。

http://d.shinh.org/html/toy/shinh/backtrace.html

Last modified:2024/04/20 12:21:47
Keyword(s):
References:[PortableBinaryHacks]