2010-08-02から1日間の記事一覧

スタックトレースを取る。の続き

前回からちょっと発展して 関数名とアドレスを出力したmapファイルを利用するようにしました。使用イメージ #include <iostream> #include <sstream> #include <fstream> #include <boost/typeof/typeof.hpp> #include <boost/current_function.hpp> #define PRINT_FUNC() { std::cout << BOOST_CURRENT_FUNCTION << std::endl; } #include "sta</boost/current_function.hpp></boost/typeof/typeof.hpp></fstream></sstream></iostream>…