summaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-06-09 19:25:15 +0000
committerTom Tromey <tromey@redhat.com>2008-06-09 19:25:15 +0000
commitc5b661547bd2c9efffef7e10628b4256f90fdcfa (patch)
treeb995bfafd6539d33996936023a5276f381d2d933 /gdb/c-exp.y
parentaef6d892c3efece15f011cf33a57031ee40f0525 (diff)
downloadgdb-c5b661547bd2c9efffef7e10628b4256f90fdcfa.tar.gz
gdb
* completer.c (complete_line): Don't special-case expression_completer. (expression_completer): Only pass last word to location_completer. * c-exp.y (yylex): Check 'token', not 'operator'. gdb/testsuite * gdb.base/completion.exp: New tests for field name completion with spaces, and field name completion with '->'.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 9cf63d8970d..0f2ee16f2fc 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1433,7 +1433,7 @@ yylex ()
{
lexptr += 2;
yylval.opcode = tokentab2[i].opcode;
- if (in_parse_field && tokentab2[i].opcode == ARROW)
+ if (in_parse_field && tokentab2[i].token == ARROW)
last_was_structop = 1;
return tokentab2[i].token;
}