gdb实用技巧

通过父类指针看派生类的类型

(gdb) set print object on

(gdb) p visitor          

$6 = (net::QuicConnection *) 0xb66700

(gdb) ptype visitor

type = /* real type = net::QuicConnection * */

class net::QuicFramerVisitorInterface {

  public:

 

f n

到bt列出的frame

 

f

到当前运行的位置

 

 

finish

运行完当前的函数

 

猜你喜欢

转载自splayx.iteye.com/blog/2105028