aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/c-typeprint.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34feb8f..8fc4a85 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 27746d9..ed98381 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -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;