diff options
Diffstat (limited to 'gdb/location.c')
-rw-r--r-- | gdb/location.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/location.c b/gdb/location.c index 8796320..d711d7b 100644 --- a/gdb/location.c +++ b/gdb/location.c @@ -24,6 +24,7 @@ #include "linespec.h" #include "cli/cli-utils.h" #include "probe.h" +#include "cp-support.h" #include <ctype.h> #include <string.h> @@ -473,8 +474,8 @@ explicit_location_lex_one (const char **inp, { /* Special case: C++ operator,. */ if (language->la_language == language_cplus - && strncmp (*inp, "operator", 8) == 0) - (*inp) += 8; + && startswith (*inp, CP_OPERATOR_STR)) + (*inp) += CP_OPERATOR_LEN; ++(*inp); } } |