1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

2004-11-08 Alain Magloire

Bug in CVariableFactory for globals, the filename of the
	binary was use instead of the filename of the symbol.
	* src/org/eclipse/cdt/debug/internal/core/model/CVariableFactory.java
This commit is contained in:
Alain Magloire 2004-11-09 01:44:59 +00:00
parent f4f6cc774e
commit 439665d7d0
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2004-11-08 Alain Magloire
Bug in CVariableFactory for globals, the filename of the
binary was use instead of the filename of the symbol.
* src/org/eclipse/cdt/debug/internal/core/model/CVariableFactory.java
2004-11-08 Alain Magloire
New class ICDIFunctionFinished.
It return the return value of the function.

View file

@ -12,7 +12,6 @@ package org.eclipse.cdt.debug.internal.core.model;
import java.text.MessageFormat;
import org.eclipse.cdt.core.IBinaryParser.IBinaryObject;
import org.eclipse.cdt.core.IBinaryParser.ISymbol;
import org.eclipse.cdt.core.model.IBinaryModule;
import org.eclipse.cdt.core.model.ICElement;
@ -62,11 +61,7 @@ public class CVariableFactory {
}
public static IGlobalVariableDescriptor createGlobalVariableDescriptor(ISymbol symbol) {
IPath path = new Path( "" ); //$NON-NLS-1$
IBinaryObject parent = symbol.getBinarObject();
path = parent.getPath();
return createGlobalVariableDescriptor( symbol.getName(), path );
return createGlobalVariableDescriptor( symbol.getName(), symbol.getFilename() );
}
public static CGlobalVariable createGlobalVariable( CDebugElement parent, IGlobalVariableDescriptor descriptor, ICDIVariableDescriptor cdiVariableObject ) {