2011-04-29 Phil Muldoon <pmuldoon@redhat.com>

PR mi/12531

	* varobj.c (install_default_visualizer): Do not install a
	visualizer if the varobj is CPLUS_FAKE_CHILD.
	(construct_visualizer): Likewise.

2011-04-29  Phil Muldoon  <pmuldoon@redhat.com>

	PR mi/12531

	* gdb.python/py-mi.exp: Add CPLUS_FAKE_CHILD tests and a C++
	compile target.
	* gdb.python/py-prettyprint.exp: Add C++ object for
	CPLUS_FAKE_CHILD test.
This commit is contained in:
Phil Muldoon
2011-04-29 12:45:46 +00:00
parent b15d6aa360
commit d65aec65d9
5 changed files with 76 additions and 0 deletions

View File

@ -94,6 +94,16 @@ class Derived : public Vbase1, public Vbase2, public Vbase3
}
};
class Fake
{
int sname;
public:
Fake (const int name = 0):
sname (name)
{
}
};
#endif
struct substruct {
@ -267,6 +277,7 @@ main ()
Derived derived;
Fake fake (42);
#endif
add_item (&c, 23); /* MI breakpoint here */