summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDidier Brachet2012-09-25 12:17:12 (EDT)
committer Eugene Tarassov2012-10-03 13:03:55 (EDT)
commit42023deda16e235ec1fccc24b31528fccac4907b (patch)
treebed0c121cbe164f7cb3652a7285dfc645d37fbe4
parented8b011dac96948a01600339dd2cfbc254539509 (diff)
downloadorg.eclipse.tcf.agent-42023deda16e235ec1fccc24b31528fccac4907b.zip
org.eclipse.tcf.agent-42023deda16e235ec1fccc24b31528fccac4907b.tar.gz
org.eclipse.tcf.agent-42023deda16e235ec1fccc24b31528fccac4907b.tar.bz2
Bug 391024 - Fixed line number computation.
-rw-r--r--agent/tcf/services/dwarfcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/services/dwarfcache.c b/agent/tcf/services/dwarfcache.c
index 065d1b2..2f59b1b 100644
--- a/agent/tcf/services/dwarfcache.c
+++ b/agent/tcf/services/dwarfcache.c
@@ -1584,7 +1584,7 @@ static void add_state(CompUnit * Unit, LineNumbersState * state) {
/* Workaround: Diab compiler generates invalid file indices for an empty compilation unit */
return;
}
- if (Unit->mFiles[state->mFile].mAreaCnt++ == 1) {
+ if (Unit->mFiles[state->mFile].mAreaCnt++ == 0) {
LineNumbersState s;
memset(&s, 0, sizeof(s));
s.mLine = 1;