天天看点

gdb模板类设置函数断点

template<class T>

class threadpool

(gdb) b thread_pool.h:threadpool<task>::threadpool

Breakpoint 2 at 0x4013e7: file thread_pool.h, line 38.

(gdb) b thread_pool.h:threadpool<task>::start

Breakpoint 3 at 0x401605: file thread_pool.h, line 66.

(gdb)

继续阅读