OSDN Git Service

2003-08-22 Michael Chastain <mec@shout.net>
authorchastain <chastain>
Sat, 23 Aug 2003 03:55:58 +0000 (03:55 +0000)
committerchastain <chastain>
Sat, 23 Aug 2003 03:55:58 +0000 (03:55 +0000)
* gdb.cp: New directory.
* gdb.cp/*: Copy from gdb.c++/*.
* gdb.c++/*: Remove.
* Makefile.in: Change gdb.c++ to gdb.cp.
* configure.in:  Ditto.
* configure: Regnerate.

80 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/Makefile.in
gdb/testsuite/configure
gdb/testsuite/configure.in
gdb/testsuite/gdb.c++/ref-types.cc [deleted file]
gdb/testsuite/gdb.cp/Makefile.in [moved from gdb/testsuite/gdb.c++/Makefile.in with 100% similarity]
gdb/testsuite/gdb.cp/ambiguous.cc [moved from gdb/testsuite/gdb.c++/ambiguous.cc with 100% similarity]
gdb/testsuite/gdb.cp/ambiguous.exp [moved from gdb/testsuite/gdb.c++/ambiguous.exp with 100% similarity]
gdb/testsuite/gdb.cp/annota2.cc [moved from gdb/testsuite/gdb.c++/annota2.cc with 100% similarity]
gdb/testsuite/gdb.cp/annota2.exp [moved from gdb/testsuite/gdb.c++/annota2.exp with 100% similarity]
gdb/testsuite/gdb.cp/annota3.cc [moved from gdb/testsuite/gdb.c++/annota3.cc with 100% similarity]
gdb/testsuite/gdb.cp/annota3.exp [moved from gdb/testsuite/gdb.c++/annota3.exp with 100% similarity]
gdb/testsuite/gdb.cp/anon-union.cc [moved from gdb/testsuite/gdb.c++/anon-union.cc with 86% similarity]
gdb/testsuite/gdb.cp/anon-union.exp [moved from gdb/testsuite/gdb.c++/anon-union.exp with 100% similarity]
gdb/testsuite/gdb.cp/casts.cc [moved from gdb/testsuite/gdb.c++/casts.cc with 100% similarity]
gdb/testsuite/gdb.cp/casts.exp [moved from gdb/testsuite/gdb.c++/casts.exp with 100% similarity]
gdb/testsuite/gdb.cp/classes.exp [moved from gdb/testsuite/gdb.c++/classes.exp with 100% similarity]
gdb/testsuite/gdb.cp/cplusfuncs.cc [moved from gdb/testsuite/gdb.c++/cplusfuncs.cc with 100% similarity]
gdb/testsuite/gdb.cp/cplusfuncs.exp [moved from gdb/testsuite/gdb.c++/cplusfuncs.exp with 100% similarity]
gdb/testsuite/gdb.cp/ctti.exp [moved from gdb/testsuite/gdb.c++/ctti.exp with 100% similarity]
gdb/testsuite/gdb.cp/cttiadd.cc [moved from gdb/testsuite/gdb.c++/cttiadd.cc with 100% similarity]
gdb/testsuite/gdb.cp/cttiadd1.cc [moved from gdb/testsuite/gdb.c++/cttiadd1.cc with 100% similarity]
gdb/testsuite/gdb.cp/cttiadd2.cc [moved from gdb/testsuite/gdb.c++/cttiadd2.cc with 100% similarity]
gdb/testsuite/gdb.cp/cttiadd3.cc [moved from gdb/testsuite/gdb.c++/cttiadd3.cc with 100% similarity]
gdb/testsuite/gdb.cp/demangle.exp [moved from gdb/testsuite/gdb.c++/demangle.exp with 100% similarity]
gdb/testsuite/gdb.cp/derivation.cc [moved from gdb/testsuite/gdb.c++/derivation.cc with 100% similarity]
gdb/testsuite/gdb.cp/derivation.exp [moved from gdb/testsuite/gdb.c++/derivation.exp with 100% similarity]
gdb/testsuite/gdb.cp/hang.H [moved from gdb/testsuite/gdb.c++/hang.H with 100% similarity]
gdb/testsuite/gdb.cp/hang.exp [moved from gdb/testsuite/gdb.c++/hang.exp with 100% similarity]
gdb/testsuite/gdb.cp/hang1.C [moved from gdb/testsuite/gdb.c++/hang1.C with 100% similarity]
gdb/testsuite/gdb.cp/hang2.C [moved from gdb/testsuite/gdb.c++/hang2.C with 100% similarity]
gdb/testsuite/gdb.cp/hang3.C [moved from gdb/testsuite/gdb.c++/hang3.C with 100% similarity]
gdb/testsuite/gdb.cp/inherit.exp [moved from gdb/testsuite/gdb.c++/inherit.exp with 100% similarity]
gdb/testsuite/gdb.cp/local.cc [moved from gdb/testsuite/gdb.c++/local.cc with 100% similarity]
gdb/testsuite/gdb.cp/local.exp [moved from gdb/testsuite/gdb.c++/local.exp with 100% similarity]
gdb/testsuite/gdb.cp/m-data.cc [moved from gdb/testsuite/gdb.c++/m-data.cc with 100% similarity]
gdb/testsuite/gdb.cp/m-data.exp [moved from gdb/testsuite/gdb.c++/m-data.exp with 100% similarity]
gdb/testsuite/gdb.cp/m-static.cc [moved from gdb/testsuite/gdb.c++/m-static.cc with 100% similarity]
gdb/testsuite/gdb.cp/m-static.exp [moved from gdb/testsuite/gdb.c++/m-static.exp with 100% similarity]
gdb/testsuite/gdb.cp/m-static.h [moved from gdb/testsuite/gdb.c++/m-static.h with 100% similarity]
gdb/testsuite/gdb.cp/m-static1.cc [moved from gdb/testsuite/gdb.c++/m-static1.cc with 100% similarity]
gdb/testsuite/gdb.cp/maint.exp [moved from gdb/testsuite/gdb.c++/maint.exp with 100% similarity]
gdb/testsuite/gdb.cp/member-ptr.cc [moved from gdb/testsuite/gdb.c++/member-ptr.cc with 100% similarity]
gdb/testsuite/gdb.cp/member-ptr.exp [moved from gdb/testsuite/gdb.c++/member-ptr.exp with 100% similarity]
gdb/testsuite/gdb.cp/method.cc [moved from gdb/testsuite/gdb.c++/method.cc with 100% similarity]
gdb/testsuite/gdb.cp/method.exp [moved from gdb/testsuite/gdb.c++/method.exp with 100% similarity]
gdb/testsuite/gdb.cp/misc.cc [moved from gdb/testsuite/gdb.c++/misc.cc with 100% similarity]
gdb/testsuite/gdb.cp/misc.exp [moved from gdb/testsuite/gdb.c++/misc.exp with 100% similarity]
gdb/testsuite/gdb.cp/namespace.cc [moved from gdb/testsuite/gdb.c++/namespace.cc with 100% similarity]
gdb/testsuite/gdb.cp/namespace.exp [moved from gdb/testsuite/gdb.c++/namespace.exp with 100% similarity]
gdb/testsuite/gdb.cp/namespace1.cc [moved from gdb/testsuite/gdb.c++/namespace1.cc with 100% similarity]
gdb/testsuite/gdb.cp/overload.cc [moved from gdb/testsuite/gdb.c++/overload.cc with 100% similarity]
gdb/testsuite/gdb.cp/overload.exp [moved from gdb/testsuite/gdb.c++/overload.exp with 100% similarity]
gdb/testsuite/gdb.cp/ovldbreak.cc [moved from gdb/testsuite/gdb.c++/ovldbreak.cc with 100% similarity]
gdb/testsuite/gdb.cp/ovldbreak.exp [moved from gdb/testsuite/gdb.c++/ovldbreak.exp with 100% similarity]
gdb/testsuite/gdb.cp/pr-1023.cc [moved from gdb/testsuite/gdb.c++/pr-1023.cc with 100% similarity]
gdb/testsuite/gdb.cp/pr-1023.exp [moved from gdb/testsuite/gdb.c++/pr-1023.exp with 100% similarity]
gdb/testsuite/gdb.cp/pr-1210.cc [moved from gdb/testsuite/gdb.c++/pr-1210.cc with 100% similarity]
gdb/testsuite/gdb.cp/pr-1210.exp [moved from gdb/testsuite/gdb.c++/pr-1210.exp with 100% similarity]
gdb/testsuite/gdb.cp/pr-574.cc [moved from gdb/testsuite/gdb.c++/pr-574.cc with 100% similarity]
gdb/testsuite/gdb.cp/pr-574.exp [moved from gdb/testsuite/gdb.c++/pr-574.exp with 100% similarity]
gdb/testsuite/gdb.cp/printmethod.cc [moved from gdb/testsuite/gdb.c++/printmethod.cc with 100% similarity]
gdb/testsuite/gdb.cp/printmethod.exp [moved from gdb/testsuite/gdb.c++/printmethod.exp with 100% similarity]
gdb/testsuite/gdb.cp/psmang.exp [moved from gdb/testsuite/gdb.c++/psmang.exp with 100% similarity]
gdb/testsuite/gdb.cp/psmang1.cc [moved from gdb/testsuite/gdb.c++/psmang1.cc with 100% similarity]
gdb/testsuite/gdb.cp/psmang2.cc [moved from gdb/testsuite/gdb.c++/psmang2.cc with 100% similarity]
gdb/testsuite/gdb.cp/ref-types.cc [new file with mode: 0644]
gdb/testsuite/gdb.cp/ref-types.exp [moved from gdb/testsuite/gdb.c++/ref-types.exp with 100% similarity]
gdb/testsuite/gdb.cp/rtti.exp [moved from gdb/testsuite/gdb.c++/rtti.exp with 100% similarity]
gdb/testsuite/gdb.cp/rtti.h [moved from gdb/testsuite/gdb.c++/rtti.h with 100% similarity]
gdb/testsuite/gdb.cp/rtti1.cc [moved from gdb/testsuite/gdb.c++/rtti1.cc with 100% similarity]
gdb/testsuite/gdb.cp/rtti2.cc [moved from gdb/testsuite/gdb.c++/rtti2.cc with 100% similarity]
gdb/testsuite/gdb.cp/templates.cc [moved from gdb/testsuite/gdb.c++/templates.cc with 100% similarity]
gdb/testsuite/gdb.cp/templates.exp [moved from gdb/testsuite/gdb.c++/templates.exp with 100% similarity]
gdb/testsuite/gdb.cp/try_catch.cc [moved from gdb/testsuite/gdb.c++/try_catch.cc with 100% similarity]
gdb/testsuite/gdb.cp/try_catch.exp [moved from gdb/testsuite/gdb.c++/try_catch.exp with 100% similarity]
gdb/testsuite/gdb.cp/userdef.cc [moved from gdb/testsuite/gdb.c++/userdef.cc with 100% similarity]
gdb/testsuite/gdb.cp/userdef.exp [moved from gdb/testsuite/gdb.c++/userdef.exp with 100% similarity]
gdb/testsuite/gdb.cp/virtfunc.cc [moved from gdb/testsuite/gdb.c++/virtfunc.cc with 98% similarity]
gdb/testsuite/gdb.cp/virtfunc.exp [moved from gdb/testsuite/gdb.c++/virtfunc.exp with 100% similarity]

index 8657935..c32a6a5 100644 (file)
@@ -1,3 +1,12 @@
+2003-08-22  Michael Chastain  <mec@shout.net>
+
+       * gdb.cp: New directory.
+       * gdb.cp/*: Copy from gdb.c++/*.
+       * gdb.c++/*: Remove.
+       * Makefile.in: Change gdb.c++ to gdb.cp.
+       * configure.in:  Ditto.
+       * configure: Regnerate.
+
 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
 
        * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
index 898e6ed..3f3b7ad 100644 (file)
@@ -35,7 +35,7 @@ SHELL = @SHELL@
 EXEEXT = @EXEEXT@
 SUBDIRS = @subdirs@
 RPATH_ENVVAR = @RPATH_ENVVAR@
-ALL_SUBDIRS = gdb.arch gdb.asm gdb.base gdb.c++ gdb.disasm gdb.java gdb.mi \
+ALL_SUBDIRS = gdb.arch gdb.asm gdb.base gdb.cp gdb.disasm gdb.java gdb.mi \
        gdb.objc gdb.threads gdb.trace $(SUBDIRS)
 
 EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
index eb505fe..f5cb089 100755 (executable)
@@ -1050,7 +1050,7 @@ done
 ac_given_srcdir=$srcdir
 
 trap 'rm -fr `echo "Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
-  gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
+  gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
   gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
@@ -1144,7 +1144,7 @@ EOF
 cat >> $CONFIG_STATUS <<EOF
 
 CONFIG_FILES=\${CONFIG_FILES-"Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
-  gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
+  gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
   gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile"}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
index 14300ec..c60cf57 100644 (file)
@@ -113,5 +113,5 @@ AC_EXEEXT
 
 AC_CONFIG_SUBDIRS($configdirs)
 AC_OUTPUT([Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile \
-  gdb.c++/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
+  gdb.cp/Makefile gdb.disasm/Makefile gdb.java/Makefile gdb.mi/Makefile \
   gdb.objc/Makefile gdb.threads/Makefile gdb.trace/Makefile])
diff --git a/gdb/testsuite/gdb.c++/ref-types.cc b/gdb/testsuite/gdb.c++/ref-types.cc
deleted file mode 100644 (file)
index 8ee5c40..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-void marker1 (void)
-{
-    
-}
-
-
-
-int main(void)
-{
-    short s;
-    short &rs = s;
-    short *ps;
-    short *&rps = ps;
-    short as[4];
-    short (&ras)[4] = as;
-    s = -1;
-    ps = &s;
-    as[0] = 0;
-    as[1] = 1;
-    as[2] = 2;
-    as[3] = 3;
-
-   #ifdef usestubs
-       set_debug_traps();
-       breakpoint();
-    #endif
-    marker1();
-    return 0;
-}
similarity index 86%
rename from gdb/testsuite/gdb.c++/anon-union.cc
rename to gdb/testsuite/gdb.cp/anon-union.cc
index c58a306..0b3fd13 100644 (file)
@@ -4,13 +4,13 @@ struct Foo {
     int zero;
     unsigned int one;
   } num1;
-
-  union {
-    int pebble;
-    struct {
+  struct X {
       int rock;
       unsigned int rock2;
-    } x;
+  };
+  union {
+    int pebble;
+    X x;
     union {
       int qux;
       unsigned int mux;
@@ -32,22 +32,23 @@ union Bar {
   unsigned int y;
 };
 
-Foo foo;
-Bar bar;
 
 int main()
 {
+  Foo foo = {0, 0};
+
   foo.paper = 33;
   foo.pebble = 44;
   foo.mux = 55;
 
-  bar.x = 33;
+  Bar bar = {0};
 
-  union
-  {
+  union {
     int z;
     unsigned int w;
-  };
+  }; w = 0;
+
+  bar.x = 33;
 
   w = 45;
 
diff --git a/gdb/testsuite/gdb.cp/ref-types.cc b/gdb/testsuite/gdb.cp/ref-types.cc
new file mode 100644 (file)
index 0000000..23cc510
--- /dev/null
@@ -0,0 +1,79 @@
+int main2(void);
+
+void marker1 (void)
+{
+    
+}
+
+
+
+int main(void)
+{
+    short s;
+    short &rs = s;
+    short *ps;
+    short *&rps = ps;
+    short as[4];
+    short (&ras)[4] = as;
+    s = -1;
+    ps = &s;
+    as[0] = 0;
+    as[1] = 1;
+    as[2] = 2;
+    as[3] = 3;
+
+   #ifdef usestubs
+       set_debug_traps();
+       breakpoint();
+    #endif
+    marker1();
+
+    main2();
+
+    return 0;
+}
+
+int f()
+{
+    int f1;
+    f1 = 1;
+    return f1;
+}
+
+int main2(void)
+{
+    char C;
+    unsigned char UC;
+    short S;
+    unsigned short US;
+    int I;
+    unsigned int UI;
+    long L;
+    unsigned long UL;
+    float F;
+    double D;
+    char &rC = C;
+    unsigned char &rUC = UC;
+    short &rS = S;
+    unsigned short &rUS = US;
+    int &rI = I;
+    unsigned int &rUI = UI;
+    long &rL = L;
+    unsigned long &rUL = UL;
+    float &rF = F;
+    double &rD = D;
+    C = 'A';
+    UC = 21;
+    S = -14;
+    US = 7;
+    I = 102;
+    UI = 1002;
+    L = -234;
+    UL = 234;
+    F = 1.25E10;
+    D = -1.375E-123;
+    I = f();
+
+    return 0;
+    
+}
similarity index 98%
rename from gdb/testsuite/gdb.c++/virtfunc.cc
rename to gdb/testsuite/gdb.cp/virtfunc.cc
index 883d502..005de9d 100644 (file)
@@ -170,7 +170,7 @@ extern "C" {
 };
 #endif
 
-main()
+int main()
 {
 #ifdef usestubs
    set_debug_traps();
@@ -182,6 +182,8 @@ main()
     e.vb = 11;
 
     test_calls();
+    return 0;
+    
 }
 
 int A::f() {return 1;}