diff options
author | Per Bothner <per@bothner.com> | 1995-06-08 00:49:10 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1995-06-08 00:49:10 +0000 |
commit | 3029162cdf703ccb5469b4e0370010b7d01c51a2 (patch) | |
tree | 95bb805150a8987627a32129d51427e32c902ff0 | |
parent | b726a3d884999594e8b0ef371fed7c20b343ea28 (diff) | |
download | gdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.zip gdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.tar.gz gdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.tar.bz2 |
* ch-exp.y: Handle <primitive_value> "->" <modename>.
This fixes PR chill/6932.
-rw-r--r-- | gdb/ch-exp.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ch-exp.y b/gdb/ch-exp.y index 62719a2..c1b132b 100644 --- a/gdb/ch-exp.y +++ b/gdb/ch-exp.y @@ -414,6 +414,13 @@ primitive_value : { write_exp_elt_opcode (UNOP_IND); } + | primitive_value POINTER mode_name + { + write_exp_elt_opcode (UNOP_CAST); + write_exp_elt_type (lookup_pointer_type ($3.type)); + write_exp_elt_opcode (UNOP_CAST); + write_exp_elt_opcode (UNOP_IND); + } | value_name { $$ = 0; /* FIXME */ |