summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/gdb.python/py-prettyprint.c
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2011-04-29 12:45:46 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2011-04-29 12:45:46 +0000
commitd65aec65d9e22f5232e414a4d8abef8f1279b090 (patch)
treed63d1f287b66a4d4591ca1010fa34023de1cbc42 /gdb/testsuite/gdb.python/py-prettyprint.c
parentb15d6aa360e54b5b921960261a015466f18bcb3c (diff)
downloadppe42-binutils-d65aec65d9e22f5232e414a4d8abef8f1279b090.tar.gz
ppe42-binutils-d65aec65d9e22f5232e414a4d8abef8f1279b090.zip
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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-prettyprint.c')
-rw-r--r--gdb/testsuite/gdb.python/py-prettyprint.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c
index 1d88b4ef0a..b65a84fbf2 100644
--- a/gdb/testsuite/gdb.python/py-prettyprint.c
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c
@@ -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 */
OpenPOWER on IntegriCloud