Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-05-24 21:11:19 +0000
committerEugene Tarassov2014-05-24 21:11:19 +0000
commitb6ce1735bfcab8faa68c7ca8fa38339662f08ea6 (patch)
tree7cc8158bacf18cb9bf93f528f415f9af6b34c032
parent62cba6adecc54df3404391f95eba278a7e94f96e (diff)
downloadorg.eclipse.tcf.agent-b6ce1735bfcab8faa68c7ca8fa38339662f08ea6.tar.gz
org.eclipse.tcf.agent-b6ce1735bfcab8faa68c7ca8fa38339662f08ea6.tar.xz
org.eclipse.tcf.agent-b6ce1735bfcab8faa68c7ca8fa38339662f08ea6.zip
Bug 429799 - Breakpoint relocation issues
-rw-r--r--agent/tcf/services/dwarfcache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/agent/tcf/services/dwarfcache.c b/agent/tcf/services/dwarfcache.c
index 19326215..9640f47e 100644
--- a/agent/tcf/services/dwarfcache.c
+++ b/agent/tcf/services/dwarfcache.c
@@ -1841,6 +1841,9 @@ static int state_address_comparator(const void * x1, const void * x2) {
if (s1->mSection > s2->mSection) return +1;
if (s1->mAddress < s2->mAddress) return -1;
if (s1->mAddress > s2->mAddress) return +1;
+ if ((s1->mFlags ^ s2->mFlags) & LINE_EndSequence) {
+ return s1->mFlags & LINE_EndSequence ? -1 : +1;
+ }
if (s1->mFile < s2->mFile) return -1;
if (s1->mFile > s2->mFile) return +1;
if (s1->mLine < s2->mLine) return -1;
@@ -2010,7 +2013,6 @@ static void load_line_numbers_v2(CompUnit * Unit, U8_T unit_size, int dwarf64) {
state.mFile = 1;
state.mLine = 1;
if (is_stmt_default) state.mFlags |= LINE_IsStmt;
- else state.mFlags &= ~LINE_IsStmt;
break;
case DW_LNE_set_address:
state.mAddress = (ContextAddress)dio_ReadAddress(&sec);

Back to the top