This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] varobj: call CHECK_TYPEDEF


On Thu, 2003-04-24 at 13:35, Andrew Cagney wrote:


Don't forget a gdb.mi/insight219 testcase.


Doh! How about the attached? (This is the minimal test that I could get
to reproduce it. It must use multiple files. That's why it never showed
up before, apparently.)

Yes, anything like that. BTW, does ...


struct t
{
  int a;
  int b;
};

typedef struct t T;

main()
{
  static T v = {...};
}

tickle it?


Index: insight219-b.cc
===================================================================
RCS file: insight219-b.cc
diff -N insight219-b.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ insight219-b.cc	24 Apr 2003 21:54:00 -0000
@@ -0,0 +1,4 @@
+#include "insight219.h"
+
+B::~B() {}
+


Index: insight219.cc
===================================================================
RCS file: insight219.cc
diff -N insight219.cc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ insight219.cc	24 Apr 2003 21:54:00 -0000
@@ -0,0 +1,8 @@
+#include "insight219.h"
+
+int
+main(int argc, char *argv[])
+{
+  B *b = new B();
+  return 0;
+};
Index: insight219.h
===================================================================
RCS file: insight219.h
diff -N insight219.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ insight219.h	24 Apr 2003 21:54:00 -0000
@@ -0,0 +1,8 @@
+class B
+{
+public:
+    virtual ~B();
+
+private:
+    int b;
+};



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]