1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +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 f616c9e74e
commit cb172f9851

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
* 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);
}
}
}