diff options
author | Tom Tromey <tromey@redhat.com> | 2010-02-15 20:42:28 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-02-15 20:42:28 +0000 |
commit | fd9e29b562a50ba711ec38d6760aa7e75b5c0256 (patch) | |
tree | 38272515c157892f598bf03c560e7dd36bdf2184 | |
parent | b946d5d83a25bb7f587982da0f188b9c9b4539d4 (diff) | |
download | gdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.zip gdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.tar.gz gdb-fd9e29b562a50ba711ec38d6760aa7e75b5c0256.tar.bz2 |
* c-typeprint.c (c_type_print_base): Reverse order of test.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/c-typeprint.c | 2 |
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; |