Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-02-13 14:41:12 -0500
committerEugene Tarassov2014-02-13 14:41:12 -0500
commit76d48ec7f079fb6a3f2bb029e976a492b4de8c6f (patch)
tree456b07bcf7118b94bc7e2e78c1c4397d3d2f7679
parent35c651155a17f121fcb6dee436bd1fd49e63d037 (diff)
downloadorg.eclipse.tcf.agent-76d48ec7f079fb6a3f2bb029e976a492b4de8c6f.tar.gz
org.eclipse.tcf.agent-76d48ec7f079fb6a3f2bb029e976a492b4de8c6f.tar.xz
org.eclipse.tcf.agent-76d48ec7f079fb6a3f2bb029e976a492b4de8c6f.zip
Bug 428117 - Debugger does not report sources file after stopped at main
-rw-r--r--agent/tcf/services/dwarfcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/tcf/services/dwarfcache.c b/agent/tcf/services/dwarfcache.c
index 2378e39e..23adbbaa 100644
--- a/agent/tcf/services/dwarfcache.c
+++ b/agent/tcf/services/dwarfcache.c
@@ -989,6 +989,11 @@ static void load_addr_ranges(void) {
if (j < i) memcpy(sCache->mAddrRanges + j, x, sizeof(UnitAddressRange));
j++;
}
+ if (j < sCache->mAddrRangesCnt - 1) {
+ UnitAddressRange * x = sCache->mAddrRanges + sCache->mAddrRangesCnt - 1;
+ memcpy(sCache->mAddrRanges + j, x, sizeof(UnitAddressRange));
+ j++;
+ }
sCache->mAddrRangesCnt = j;
}
}

Back to the top