aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-02-15 20:42:28 +0000
committerTom Tromey <tromey@redhat.com>2010-02-15 20:42:28 +0000
commitfd9e29b562a50ba711ec38d6760aa7e75b5c0256 (patch)
tree38272515c157892f598bf03c560e7dd36bdf2184 /gdb
parentb946d5d83a25bb7f587982da0f188b9c9b4539d4 (diff)
downloadgdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.zip
gdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.tar.gz
gdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.tar.bz2
* c-typeprint.c (c_type_print_base): Reverse order of test.
Diffstat (limited to 'gdb')
-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;