break コマンドだと malformed template だと怒られる
$ gdb ./a.out (gdb) b std::operator<< malformed template specification in command
rbreak で出来た
正規表現で関数名を指定出来るらしい。
$ gdb ./a.out (gdb) rb std::operator<< Breakpoint 1 at 0x253a8 <function, no debug info> std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::operator<< <wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&); : : : :