Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2017-12-16 00:50:04 +0000
committerEugene Tarassov2017-12-16 00:50:04 +0000
commita696df918c39c9608511476c6f6fdcb1e8839127 (patch)
tree8d389649823567452e3dc95605f7e3b5d146aeed /agent/tcf/services/stacktrace.c
parent3a619d62c9e78bb032963c0ee687c7c5c5318d21 (diff)
downloadorg.eclipse.tcf.agent-a696df918c39c9608511476c6f6fdcb1e8839127.tar.gz
org.eclipse.tcf.agent-a696df918c39c9608511476c6f6fdcb1e8839127.tar.xz
org.eclipse.tcf.agent-a696df918c39c9608511476c6f6fdcb1e8839127.zip
TCF Agent: fixed MinGW build errors
Diffstat (limited to 'agent/tcf/services/stacktrace.c')
-rw-r--r--agent/tcf/services/stacktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/tcf/services/stacktrace.c b/agent/tcf/services/stacktrace.c
index 229dd243..ca2b385d 100644
--- a/agent/tcf/services/stacktrace.c
+++ b/agent/tcf/services/stacktrace.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2017 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007-2017 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
@@ -106,7 +106,7 @@ static int get_frame_debug_info(StackFrame * frame, StackTracingInfo ** info) {
int sym_class = SYM_CLASS_UNKNOWN;
ContextAddress sym_addr = 0;
ContextAddress sym_size = 0;
- if (find_symbol_by_addr(ctx, STACK_NO_FRAME, ip - 1, &sym) == 0 &&
+ if (find_symbol_by_addr(ctx, STACK_NO_FRAME, (ContextAddress)(ip - 1), &sym) == 0 &&
get_symbol_class(sym, &sym_class) == 0 && sym_class == SYM_CLASS_FUNCTION &&
get_symbol_size(sym, &sym_size) == 0 && sym_size != 0 &&
get_symbol_address(sym, &sym_addr) == 0 && sym_addr != 0 &&

Back to the top