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