summaryrefslogtreecommitdiff
path: root/gdb/std-operator.def
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 19:41:16 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 19:41:16 +0000
commitf5132abec1d9a545e400439b86cec69dd8e2a874 (patch)
tree7bcfe119944c3f2a33531a3f7283bda215810397 /gdb/std-operator.def
parent20435b4f8afa96207310d3ae0bafe2def7881b5d (diff)
downloadgdb-f5132abec1d9a545e400439b86cec69dd8e2a874.tar.gz
gdb/
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. * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE. * expprint.c (print_subexp_standard, dump_subexp_body_standard): Likewise. * parse.c (operator_length_standard): Likewise. * std-operator.def: New operator OP_VAR_ENTRY_VALUE. gdb/doc/ Support @entry in input expressions. * gdb.texinfo (Variables): Describe @entry names suffix. (Print Settings): Add anchor for `set print entry-values'. gdb/testsuite/ Support @entry in input expressions. * gdb.arch/amd64-entry-value.exp (entry: p i@entry, entry: p j@entry) (entry_stack: p s1@entry, entry_stack: p s2@entry) (entry_stack: p d9@entry, entry_stack: p da@entry, tailcall: p i@entry) (tailcall: p j@entry): New tests. * gdb.cp/koenig.cc (A::entry): New function. (main): Call it. * gdb.cp/koenig.exp (p entry (c)): New test.
Diffstat (limited to 'gdb/std-operator.def')
-rw-r--r--gdb/std-operator.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/std-operator.def b/gdb/std-operator.def
index 2c771415b78..3b6b0ae6050 100644
--- a/gdb/std-operator.def
+++ b/gdb/std-operator.def
@@ -139,6 +139,12 @@ OP (OP_DOUBLE)
use the selected frame. */
OP (OP_VAR_VALUE)
+/* OP_VAR_ENTRY_VALUE takes one struct symbol * in the following element,
+ followed by another OP_VAR_ENTRY_VALUE, making three exp_elements.
+ somename@entry may mean parameter value as present at the entry of the
+ current function. Implemented via DW_OP_GNU_entry_value. */
+OP (OP_VAR_ENTRY_VALUE)
+
/* OP_LAST is followed by an integer in the next exp_element.
The integer is zero for the last value printed,
or it is the absolute number of a history element.