aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-04 03:12:05 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-04 03:12:05 +0000
commit93dc3414391aaa742bdc21c8a9c153c47b559ac7 (patch)
tree9b576c4751456b6c71bd4fefe6a1d46ba9d1841a /gdb/ch-exp.y
parentb855dfe7eb01d63c4592bb71aba09669b9313c60 (diff)
downloadgdb-93dc3414391aaa742bdc21c8a9c153c47b559ac7.zip
gdb-93dc3414391aaa742bdc21c8a9c153c47b559ac7.tar.gz
gdb-93dc3414391aaa742bdc21c8a9c153c47b559ac7.tar.bz2
* ch-exp.y (match_simple_name_string): Accept '_' as well as an
alphabetic character as the start of a name.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y
index ae974fc..e818803 100644
--- a/gdb/ch-exp.y
+++ b/gdb/ch-exp.y
@@ -1044,7 +1044,7 @@ match_simple_name_string ()
{
char *tokptr = lexptr;
- if (isalpha (*tokptr))
+ if (isalpha (*tokptr) || *tokptr == '_')
{
char *result;
do {