aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-10-26 23:07:26 +0000
committerJim Blandy <jimb@codesourcery.com>2007-10-26 23:07:26 +0000
commit74b35824fc7881eeae6aa22a41c790b5e98f1303 (patch)
tree500261e5a34916181c0fbecbf3d435c78b4dd587 /gdb/ax-gdb.c
parent648027ccebd4461f6e38ed9e708990cf16af526d (diff)
downloadgdb-74b35824fc7881eeae6aa22a41c790b5e98f1303.zip
gdb-74b35824fc7881eeae6aa22a41c790b5e98f1303.tar.gz
gdb-74b35824fc7881eeae6aa22a41c790b5e98f1303.tar.bz2
* ax-gdb.c (gen_cast): Remove redundant assignment to
value->type. Doc fix.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 27cc5b1..013b898 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -905,9 +905,8 @@ gen_cast (struct agent_expr *ax, struct axs_value *value, struct type *type)
/* We don't have to worry about the size of the value, because
all our integral values are fully sign-extended, and when
casting pointers we can do anything we like. Is there any
- way for us to actually know what GCC actually does with a
- cast like this? */
- value->type = type;
+ way for us to know what GCC actually does with a cast like
+ this? */
break;
case TYPE_CODE_INT: