From 81afee37d0a016cd3e671693c165916893ac3e60 Mon Sep 17 00:00:00 2001 From: Fred Fish Date: Fri, 16 Feb 1996 06:14:15 +0000 Subject: * demangle.c (is_cplus_marker): New function, checks if a character is one of the commonly used C++ marker characters. * defs.h (is_cplus_marker): Add prototype. * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle), cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol), stabsread.c (define_symbol, read_member_functions, read_struct_fields), symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P), values.c (vb_match): Use is_cplus_marker instead of comparison with CPLUS_MARKER. --- gdb/values.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/values.c') diff --git a/gdb/values.c b/gdb/values.c index f95c831..991d374 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -1,5 +1,5 @@ /* Low level packing and unpacking of values for GDB, the GNU Debugger. - Copyright 1986, 1987, 1989, 1991, 1993, 1994, 1995 + Copyright 1986, 1987, 1989, 1991, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -1039,7 +1039,7 @@ vb_match (type, index, basetype) if (*name != '_') return 0; /* gcc 2.4 uses _vb$. */ - if (name[1] == 'v' && name[2] == 'b' && name[3] == CPLUS_MARKER) + if (name[1] == 'v' && name[2] == 'b' && is_cplus_marker (name[3])) field_class_name = name + 4; /* gcc 2.5 will use __vb_. */ if (name[1] == '_' && name[2] == 'v' && name[3] == 'b' && name[4] == '_') -- cgit v1.1