projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
[deliverable/binutils-gdb.git]
/
gdb
/
ax-gdb.c
diff --git
a/gdb/ax-gdb.c
b/gdb/ax-gdb.c
index 98d9ef59d5154a8b63ee5978d6c3a318f61b5be7..1b0097ff95786f374eacd24dd3bc4cb7ecdf13f2 100644
(file)
--- a/
gdb/ax-gdb.c
+++ b/
gdb/ax-gdb.c
@@
-1642,6
+1642,13
@@
gen_expr (union exp_element **pc, struct agent_expr *ax,
}
break;
+ case UNOP_PLUS:
+ (*pc)++;
+ /* + FOO is equivalent to 0 + FOO, which can be optimized. */
+ gen_expr (pc, ax, value);
+ gen_usual_unary (ax, value);
+ break;
+
case UNOP_NEG:
(*pc)++;
/* -FOO is equivalent to 0 - FOO. */
This page took
0.023976 seconds
and
4
git commands to generate.