1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

[disassembly] Do not reuse label position for creating bp annotation

This commit is contained in:
Anton Leherbauer 2015-12-15 15:03:22 +01:00
parent a590b75c92
commit ff25e469db

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -75,7 +75,7 @@ public class DisassemblyAnnotationModel extends AnnotationModel {
if (candidate != null && candidate.startsWith(label)) { if (candidate != null && candidate.startsWith(label)) {
// exact match or followed by () // exact match or followed by ()
if (candidate.length() == labelLen || candidate.charAt(labelLen) == '(') { if (candidate.length() == labelLen || candidate.charAt(labelLen) == '(') {
return position; return new Position(position.offset, position.length);
} }
} }
} }