I wrote a function similar to this:
class abc {
private :
int m_var ;
public :
int func() { return m_var ; }
};
When I try to print the func()
using an abc
object pointer in gdb
, it is giving the error:
**Cannot evaluate function -- may be inlined**
How to can I print values from an inlined function?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…