Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2019-08-21 17:44:38 +0000
committerEugene Tarassov2019-08-21 17:44:38 +0000
commit370968b8e63bb3cc3d3edb4f0b16478dee6fa78b (patch)
treeac6d7331c13be0382f177e1fbbfe60026c9fa73d /agent/tcf/services/dwarfcache.c
parentf970327bc972f413490e747e209152b6d45ab1c4 (diff)
downloadorg.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.c3
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;

Back to the top