From fd9e29b562a50ba711ec38d6760aa7e75b5c0256 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 15 Feb 2010 20:42:28 +0000 Subject: * c-typeprint.c (c_type_print_base): Reverse order of test. --- gdb/ChangeLog | 4 ++++ gdb/c-typeprint.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * 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 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; -- cgit v1.1