gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 11 Oct 2011 15:24:11 +0000 (15:24 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 11 Oct 2011 15:24:11 +0000 (15:24 +0000)
commit941b2081b1fd085fff7d323448672cedf18258db
tree9ce9ac187478148ba6cf153185277a57eef997f2
parent3c4d7e1201c0e8fb4b9a3e4f297c5b4a18bf38db
gdb/
Revert this part of:
2011-10-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
Support @entry in input expressions.
* c-exp.y (ENTRY, unknown_cpp_name): New.
(exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
(unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
(variable: name_not_typename '@' ENTRY, name: ENTRY)
(name_not_typename: ENTRY): New.
(yylex): Recognize ENTRY.

Reimplement @entry in input expressions.
* c-exp.y (ENTRY): New.
(variable: name_not_typename ENTRY): New.
(lex_one_token): Optionally return ENTRY instead of the '@' lex.

gdb/testsuite/
Reimplement @entry in input expressions.
* gdb.base/exprs.c (v_int_array_init): New variable.
* gdb.base/exprs.exp (print v_int_array_init)
(print *v_int_array_init@1, print *v_int_array_init@2)
(print v_int_array_init[0]@1, print v_int_array_init[0]@2)
(print v_int_array_init[1]@1): New tests.
gdb/ChangeLog
gdb/c-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/exprs.c
gdb/testsuite/gdb.base/exprs.exp