Fix ChangeLog to point to the correct bug, PR gdb/9594.
authorTom Tromey <tromey@redhat.com>
Tue, 3 Feb 2009 01:09:01 +0000 (01:09 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 3 Feb 2009 01:09:01 +0000 (01:09 +0000)
gdb/testsuite
* gdb.cp/cpcompletion.exp: Name the test "pr9594".
* gdb.cp/pr2489.cc: Rename...
* gdb.cp/pr9594.cc: ... to this.

gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/Makefile.in
gdb/testsuite/gdb.cp/cpcompletion.exp
gdb/testsuite/gdb.cp/pr2489.cc [deleted file]
gdb/testsuite/gdb.cp/pr9594.cc [new file with mode: 0644]

index 79e532b36a7e94286d4d34fe5424b29fe32fef42..cd9d90e144f4d8cc83bb0f778f7fe71b26e1f8b8 100644 (file)
@@ -1,6 +1,6 @@
 2009-02-02  Tom Tromey  <tromey@redhat.com>
 
-       PR gdb/2489:
+       PR gdb/9594:
        * completer.c (count_struct_fields): Count method names.
        (add_struct_fields): Add matching method names.
 
index aca5b5e7da088c51de6799d0a265b9698da98964..e81f304c443686fd5ed733d9d0d906b987e43229 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-02  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.cp/cpcompletion.exp: Name the test "pr9594".
+       * gdb.cp/pr2489.cc: Rename...
+       * gdb.cp/pr9594.cc: ... to this.
+
 2009-02-02  Tom Tromey  <tromey@redhat.com>
 
        * gdb.cp/Makefile.in (EXECUTABLES): Add pr2489.
index 9239d70f9f2a6589f5005e23c1eedd09e7844356..1787ad5c24f8869c8d22f95a281deb97e70a0ec6 100644 (file)
@@ -4,7 +4,7 @@ srcdir = @srcdir@
 EXECUTABLES = ambiguous annota2 anon-union cplusfuncs cttiadd \
        derivation inherit local member-ptr method misc \
         overload ovldbreak ref-typ ref-typ2 templates userdef virtfunc namespace \
-       ref-types ref-params method2 pr2489
+       ref-types ref-params method2 pr9594
 
 all info install-info dvi install uninstall installcheck check:
        @echo "Nothing to be done for $@..."
index 2f715adbeb765bf23b866735f21be673e241fb15..4a5dbeb072013ea34f53a966ac6f6892ce6da21e 100644 (file)
@@ -21,7 +21,7 @@ if $tracelevel then {
 
 if { [skip_cplus_tests] } { continue }
 
-set testfile pr2489
+set testfile pr9594
 set binfile ${objdir}/${subdir}/${testfile}
 
 if {[gdb_compile "${srcdir}/${subdir}/${testfile}.cc" "${testfile}.o" object {c++ debug}] != ""} {
diff --git a/gdb/testsuite/gdb.cp/pr2489.cc b/gdb/testsuite/gdb.cp/pr2489.cc
deleted file mode 100644 (file)
index bb7e1d6..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-
-class Base
-{
-public:
-  virtual int get_foo () { return 1; }
-  int base_function_only () { return 2; }
-};
-
-class Foo : public Base
-{
-
-private:
-  int foo_value;
-
-public:
-  Foo () { foo_value = 0;}
-  Foo (int i) { foo_value = i;}
-  ~Foo () { }
-  void set_foo (int value);
-  int get_foo ();
-
-  // Something similar to a constructor name.
-  void Foofoo ();
-
-  bool operator== (const Foo &other) { return foo_value == other.foo_value; }
-};
-void Foo::set_foo (int value)
-{
-  foo_value = value;
-}
-
-int Foo::get_foo ()
-{
-  return foo_value;
-}
-
-void Foo::Foofoo ()
-{
-}
-
-int main ()
-{
-  // Anonymous struct with method.
-  struct {
-    int get() { return 5; }
-  } a;
-  Foo foo1;
-  foo1.set_foo (42);           // Set breakpoint here.
-  return 0;
-}
diff --git a/gdb/testsuite/gdb.cp/pr9594.cc b/gdb/testsuite/gdb.cp/pr9594.cc
new file mode 100644 (file)
index 0000000..bb7e1d6
--- /dev/null
@@ -0,0 +1,51 @@
+
+class Base
+{
+public:
+  virtual int get_foo () { return 1; }
+  int base_function_only () { return 2; }
+};
+
+class Foo : public Base
+{
+
+private:
+  int foo_value;
+
+public:
+  Foo () { foo_value = 0;}
+  Foo (int i) { foo_value = i;}
+  ~Foo () { }
+  void set_foo (int value);
+  int get_foo ();
+
+  // Something similar to a constructor name.
+  void Foofoo ();
+
+  bool operator== (const Foo &other) { return foo_value == other.foo_value; }
+};
+void Foo::set_foo (int value)
+{
+  foo_value = value;
+}
+
+int Foo::get_foo ()
+{
+  return foo_value;
+}
+
+void Foo::Foofoo ()
+{
+}
+
+int main ()
+{
+  // Anonymous struct with method.
+  struct {
+    int get() { return 5; }
+  } a;
+  Foo foo1;
+  foo1.set_foo (42);           // Set breakpoint here.
+  return 0;
+}
This page took 0.041528 seconds and 4 git commands to generate.