diff options
author | Eugene Tarassov | 2019-08-21 17:44:38 +0000 |
---|---|---|
committer | Eugene Tarassov | 2019-08-21 17:44:38 +0000 |
commit | 370968b8e63bb3cc3d3edb4f0b16478dee6fa78b (patch) | |
tree | ac6d7331c13be0382f177e1fbbfe60026c9fa73d /agent/tcf/services/dwarfcache.c | |
parent | f970327bc972f413490e747e209152b6d45ab1c4 (diff) | |
download | org.eclipse.tcf.agent-370968b8e63bb3cc3d3edb4f0b16478dee6fa78b.tar.gz org.eclipse.tcf.agent-370968b8e63bb3cc3d3edb4f0b16478dee6fa78b.tar.xz org.eclipse.tcf.agent-370968b8e63bb3cc3d3edb4f0b16478dee6fa78b.zip |
Bug 550086 - two breakpoints at single line when debug executable file compiled by gcc8.1
Diffstat (limited to 'agent/tcf/services/dwarfcache.c')
-rw-r--r-- | agent/tcf/services/dwarfcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/tcf/services/dwarfcache.c b/agent/tcf/services/dwarfcache.c index d81cd2f2..7daf3973 100644 --- a/agent/tcf/services/dwarfcache.c +++ b/agent/tcf/services/dwarfcache.c @@ -2105,10 +2105,11 @@ static void add_state(CompUnit * unit, LineNumbersState * state) { if (unit->mStatesCnt > 0) { /* Workaround: malformed gnu-8.1.0.0 line info when -gstatement-frontiers is used. * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=544359 + * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=544359 */ LineNumbersState * last = unit->mStates + unit->mStatesCnt - 1; if (last->mAddress == state->mAddress && last->mSection == state->mSection && - last->mFile == state->mFile && last->mLine == state->mLine && last->mColumn == state->mColumn && + last->mFile == state->mFile && last->mLine == state->mLine && last->mColumn <= state->mColumn && (last->mFlags & ~(LINE_IsStmt | LINE_BasicBlock)) == state->mFlags) { last->mISA = state->mISA; last->mOpIndex = state->mOpIndex; |