* c-typeprint.c (c_type_print_base): Reverse order of test.
authorTom Tromey <tromey@redhat.com>
Mon, 15 Feb 2010 20:42:28 +0000 (20:42 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 15 Feb 2010 20:42:28 +0000 (20:42 +0000)
gdb/ChangeLog
gdb/c-typeprint.c

index 34feb8f244f3e9c4496fd583088afee4fbf27d57..8fc4a85d835426d2c981482af4ce403877aa37cb 100644 (file)
@@ -1,3 +1,7 @@
+2010-02-15  Tom Tromey  <tromey@redhat.com>
+
+       * c-typeprint.c (c_type_print_base): Reverse order of test.
+
 2010-02-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize.  Optionally
index 27746d9401b6faa01af7a9d9244358e29ab05ed7..ed9838109f6fc1a7549c21be5f4853ab15c32190 100644 (file)
@@ -832,7 +832,7 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show,
              /* If we have a virtual table pointer, omit it.  Even if
                 virtual table pointers are not specifically marked in
                 the debug info, they should be artificial.  */
-             if ((type == basetype && i == vptr_fieldno)
+             if ((i == vptr_fieldno && type == basetype)
                  || TYPE_FIELD_ARTIFICIAL (type, i))
                continue;
 
This page took 0.029934 seconds and 4 git commands to generate.