1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

2005-07-25 Alain Magloire

Part fix for PR 100992: The signature was incorrect for structure/unions.

	* src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java
This commit is contained in:
Alain Magloire 2005-07-25 16:30:01 +00:00
parent fb7f745e66
commit 2cfafe2975
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-25 Alain Magloire
Part fix for PR 100992: The signature was incorrect for structure/unions.
* src/org/eclipse/cdt/debug/internal/ui/actions/ToggleBreakpointAdapter.java
2005-07-22 Alain Magloire
Fix the copyright.

View file

@ -403,7 +403,8 @@ public class ToggleBreakpointAdapter implements IToggleBreakpointsTarget {
StringBuffer name = new StringBuffer();
String methodName = method.getElementName();
ICElement parent = method.getParent();
while ( parent != null && ( parent.getElementType() == ICElement.C_NAMESPACE || parent.getElementType() == ICElement.C_CLASS ) ) {
while ( parent != null && ( parent.getElementType() == ICElement.C_NAMESPACE || parent.getElementType() == ICElement.C_CLASS )
|| parent.getElementType() == ICElement.C_STRUCT || parent.getElementType() == ICElement.C_UNION) {
name.append( parent.getElementName() ).append( "::" ); //$NON-NLS-1$
parent = parent.getParent();
}