Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAnton Leherbauer2015-12-15 09:03:22 -0500
committerAnton Leherbauer2015-12-15 09:04:36 -0500
commitcb172f985158d7fa743bc5bf4b44ad073a86f946 (patch)
tree3227ee2d2e7693fee0c4b9bbfb1d994a1b5c1aaa /dsf
parentf616c9e74e64857cf930a167062356e2c03257a7 (diff)
downloadorg.eclipse.cdt-cb172f985158d7fa743bc5bf4b44ad073a86f946.tar.gz
org.eclipse.cdt-cb172f985158d7fa743bc5bf4b44ad073a86f946.tar.xz
org.eclipse.cdt-cb172f985158d7fa743bc5bf4b44ad073a86f946.zip
[disassembly] Do not reuse label position for creating bp annotation
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblyAnnotationModel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblyAnnotationModel.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblyAnnotationModel.java
index 04d0bf4fb5..89848d1c95 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblyAnnotationModel.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/provisional/DisassemblyAnnotationModel.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Wind River Systems, Inc. and others.
+ * Copyright (c) 2011, 2015 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -75,7 +75,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
if (candidate != null && candidate.startsWith(label)) {
// exact match or followed by ()
if (candidate.length() == labelLen || candidate.charAt(labelLen) == '(') {
- return position;
+ return new Position(position.offset, position.length);
}
}
}

Back to the top