diff options
author | Doug Evans <dje@google.com> | 2002-12-20 04:54:30 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2002-12-20 04:54:30 +0000 |
commit | d9147ab3ffbb447e22f75c061ae80028acde56e4 (patch) | |
tree | 25ee0f37e6c29e831aad2f364ab0ea8d2a1828a2 /opcodes/cgen-asm.c | |
parent | 7990a5784cbe840a25794a4c3c178d93a2229c85 (diff) | |
download | gdb-d9147ab3ffbb447e22f75c061ae80028acde56e4.zip gdb-d9147ab3ffbb447e22f75c061ae80028acde56e4.tar.gz gdb-d9147ab3ffbb447e22f75c061ae80028acde56e4.tar.bz2 |
* cgen-asm.c (cgen_parse_keyword): Added underscore to symbol character
check to fix false keyword trigger with names such as <keyword>_foo.
Diffstat (limited to 'opcodes/cgen-asm.c')
-rw-r--r-- | opcodes/cgen-asm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes/cgen-asm.c b/opcodes/cgen-asm.c index 05b62bf..c71c70de 100644 --- a/opcodes/cgen-asm.c +++ b/opcodes/cgen-asm.c @@ -225,7 +225,9 @@ cgen_parse_keyword (cd, strp, keyword_table, valuep) /* Allow letters, digits, and any special characters. */ while (((p - start) < (int) sizeof (buf)) && *p - && (ISALNUM (*p) || strchr (keyword_table->nonalpha_chars, *p))) + && (ISALNUM (*p) + || *p == '_' + || strchr (keyword_table->nonalpha_chars, *p))) ++p; if (p - start >= (int) sizeof (buf)) |