From: Tom Tromey Date: Mon, 15 Feb 2010 20:42:28 +0000 (+0000) Subject: * c-typeprint.c (c_type_print_base): Reverse order of test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd9e29b562a50ba711ec38d6760aa7e75b5c0256;p=binutils-gdb.git * c-typeprint.c (c_type_print_base): Reverse order of test. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 34feb8f244f..8fc4a85d835 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2010-02-15 Tom Tromey + + * c-typeprint.c (c_type_print_base): Reverse order of test. + 2010-02-15 Jan Kratochvil * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 27746d9401b..ed9838109f6 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;