1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Made "getCommandFile" and "getWorkingDirectory" methods protected.

This commit is contained in:
Mikhail Khodjaiants 2006-03-20 23:29:10 +00:00
parent 2a30a9aa28
commit d1ad9cfff1
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2006-03-20 Mikhail Khodjaiants
Made "getCommandFile" and "getWorkingDirectory" methods protected.
* GDBCDIDebugger2.java
2006-03-16 Mikhail Khodjaiants
ILaunch is added to the arguments list of "doStartSession".
* AbstractGDBCDIDebugger.java

View file

@ -222,12 +222,12 @@ public class GDBCDIDebugger2 extends AbstractGDBCDIDebugger {
}
}
private String getWorkingDirectory( ILaunchConfiguration config ) throws CoreException {
protected String getWorkingDirectory( ILaunchConfiguration config ) throws CoreException {
File cwd = getProjectPath( config ).toFile();
return "--cd=" + cwd.getAbsolutePath(); //$NON-NLS-1$
}
private String getCommandFile( ILaunchConfiguration config ) throws CoreException {
protected String getCommandFile( ILaunchConfiguration config ) throws CoreException {
String gdbinit = config.getAttribute( IMILaunchConfigurationConstants.ATTR_GDB_INIT, IMILaunchConfigurationConstants.DEBUGGER_GDB_INIT_DEFAULT );
return (gdbinit != null && gdbinit.length() > 0) ? "--command=" + gdbinit : "--nx"; //$NON-NLS-1$ //$NON-NLS-2$
}