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:
parent
f616c9e74e
commit
cb172f9851
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue