Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-10-01 01:08:35 -0400
committerEugene Tarassov2012-10-01 01:08:35 -0400
commit8899c1a378c48b036b05b25b69d0b91822d8b74a (patch)
tree14143d9f39ce2e23f83f2f2aadc418b76f03ff6d
parent29c2dfe85744111a524fe77db40bf9ce7a10fd2c (diff)
downloadorg.eclipse.tcf.agent-8899c1a378c48b036b05b25b69d0b91822d8b74a.tar.gz
org.eclipse.tcf.agent-8899c1a378c48b036b05b25b69d0b91822d8b74a.tar.xz
org.eclipse.tcf.agent-8899c1a378c48b036b05b25b69d0b91822d8b74a.zip
TCF Agent: Expressions service: fixed regression in handling of 'sizeof'
-rw-r--r--agent/tcf/services/expressions.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/tcf/services/expressions.c b/agent/tcf/services/expressions.c
index bb5ec9e0..5f4bc87b 100644
--- a/agent/tcf/services/expressions.c
+++ b/agent/tcf/services/expressions.c
@@ -1145,7 +1145,6 @@ static int type_name(int mode, Symbol ** type) {
return 0;
}
expr_len = type_expression(mode, expr_buf);
- if (text_sy != ')') return 0;
if (mode != MODE_SKIP) {
int i;
for (i = 0; i < expr_len; i++) {
@@ -1689,7 +1688,7 @@ static void op_sizeof(int mode, Value * v) {
if (p) next_sy();
pos = sy_pos;
- if (p && type_name(mode, &type)) {
+ if (type_name(mode, &type) && (!p || text_sy == ')')) {
if (mode != MODE_SKIP) {
ContextAddress type_size = 0;
#if ENABLE_Symbols

Back to the top