projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b726a3d
)
* ch-exp.y: Handle <primitive_value> "->" <modename>.
author
Per Bothner
<per@bothner.com>
Thu, 8 Jun 1995 00:49:10 +0000
(
00:49
+0000)
committer
Per Bothner
<per@bothner.com>
Thu, 8 Jun 1995 00:49:10 +0000
(
00:49
+0000)
This fixes PR chill/6932.
gdb/ch-exp.y
patch
|
blob
|
history
diff --git
a/gdb/ch-exp.y
b/gdb/ch-exp.y
index
62719a2
..
c1b132b
100644
(file)
--- 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 */