1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

2005-07-21 Alain Magloire

Fix for PR 103193
	* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/LocationBreakpoint.java
	* src/org/eclipse/cdt/debug/mi/core/MIPlugin.java
This commit is contained in:
Alain Magloire 2005-07-21 20:29:28 +00:00
parent 0252f611c0
commit 4bcf2bce38
3 changed files with 14 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2005-07-21 Alain Magloire
Fix for PR 103193
* cdi/org/eclipse/cdt/debug/mi/core/cdi/model/LocationBreakpoint.java
* src/org/eclipse/cdt/debug/mi/core/MIPlugin.java
2005-07-18 Alain Magloire
GDB has now four different version of MI, so it has become
important to give the user the choice of the version.

View file

@ -67,11 +67,16 @@ public abstract class LocationBreakpoint extends Breakpoint implements ICDIBreak
}
public String getFunction() {
if (miBreakpoints != null && miBreakpoints.length > 0) {
return miBreakpoints[0].getFunction();
} else if (fLocation instanceof ICDIFunctionLocation) {
// TODO: We need to review this but for now
// we need to return what the cdt debug passed us
// it is necessary when they do the comparison.
if (fLocation instanceof ICDIFunctionLocation) {
return ((ICDIFunctionLocation)fLocation).getFunction();
}
} else if (miBreakpoints != null && miBreakpoints.length > 0) {
return miBreakpoints[0].getFunction();
} /*else if (fLocation instanceof ICDIFunctionLocation) {
return ((ICDIFunctionLocation)fLocation).getFunction();
}*/
return null;
}

View file

@ -23,7 +23,6 @@ import org.eclipse.cdt.debug.mi.core.command.CLITargetAttach;
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
import org.eclipse.cdt.debug.mi.core.command.MIStackListFrames;
import org.eclipse.cdt.debug.mi.core.command.MITargetSelect;
import org.eclipse.cdt.debug.mi.core.command.MIVersion;
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
import org.eclipse.cdt.utils.pty.PTY;
import org.eclipse.core.runtime.IProgressMonitor;