diff options
Diffstat (limited to 'gdb/jv-typeprint.c')
-rw-r--r-- | gdb/jv-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c index b6dac57d48c..0d4c1876486 100644 --- a/gdb/jv-typeprint.c +++ b/gdb/jv-typeprint.c @@ -166,12 +166,12 @@ java_type_print_base (struct type *type, struct ui_file *stream, int show, { QUIT; /* Don't print out virtual function table. */ - if (STREQN (TYPE_FIELD_NAME (type, i), "_vptr", 5) + if (strncmp (TYPE_FIELD_NAME (type, i), "_vptr", 5) == 0 && is_cplus_marker ((TYPE_FIELD_NAME (type, i))[5])) continue; /* Don't print the dummy field "class". */ - if (STREQN (TYPE_FIELD_NAME (type, i), "class", 5)) + if (strncmp (TYPE_FIELD_NAME (type, i), "class", 5) == 0) continue; print_spaces_filtered (level + 4, stream); |