aboutsummaryrefslogtreecommitdiff
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
commit37cd5d19fecc44f28d9b1f32146e53cdb19b5553 (patch)
treeb9ddb6767f777080c4466561077e0469d37f91dc /gdb/c-exp.y
parent7b3082352faa8596807f9f5ad038039aae615020 (diff)
downloadgdb-37cd5d19fecc44f28d9b1f32146e53cdb19b5553.zip
gdb-37cd5d19fecc44f28d9b1f32146e53cdb19b5553.tar.gz
gdb-37cd5d19fecc44f28d9b1f32146e53cdb19b5553.tar.bz2
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 9cf63d8..0f2ee16 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;
}