aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.y
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1995-06-08 00:49:10 +0000
committerPer Bothner <per@bothner.com>1995-06-08 00:49:10 +0000
commit3029162cdf703ccb5469b4e0370010b7d01c51a2 (patch)
tree95bb805150a8987627a32129d51427e32c902ff0 /gdb/ch-exp.y
parentb726a3d884999594e8b0ef371fed7c20b343ea28 (diff)
downloadgdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.zip
gdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.tar.gz
gdb-3029162cdf703ccb5469b4e0370010b7d01c51a2.tar.bz2
* ch-exp.y: Handle <primitive_value> "->" <modename>.
This fixes PR chill/6932.
Diffstat (limited to 'gdb/ch-exp.y')
-rw-r--r--gdb/ch-exp.y7
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 */