"mi_cmd_var_create: unable to create variable object"


Hi,

Just wonder whether this is a bug of GDB?

I'm trying the debug my project and would like to watch one of the member variables "m_iFrames" can not be watched !!!

The error messages are like:


DEBUG>>00000671-var-create - * "m_iFrames"
DEBUG>>00000671^error,msg="mi_cmd_var_create: unable to create variable object"


I'm just wondering whether this is a GDB bug? Or, I need to set up something before I'm able to watch those member variables?

BTW, the local variables are able to be watched.

Urgent !! Please do help.

Best Regards
JIA Pei
Was this compiled with any optimizations? What does the class itself look like?

Current class looks very easy.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class CObjectDetection : public QMainWindow
{
	Q_OBJECT

public:
	CObjectDetection(QWidget *parent = 0, Qt::WFlags flags = 0);
	~CObjectDetection();

	static int						m_Timer;
	
protected:
	unsigned int					m_iFrames;
	void							timerEvent(QTimerEvent*);

private slots:
	void							about();
};


In the function "timerEvent", it now looks like

1
2
3
4
void CObjectDetection::timerEvent(QTimerEvent*)
{
	m_iFrames++;
}


I just set a break point in function timerEvent and would like to see the values of "m_iFrames".

Any suggestions?

Best Regards
JIA
Topic archived. No new replies allowed.