diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index 123c1638f5c..51900de3806 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -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 diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger2.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger2.java index daec61efc0e..1eeea2e653f 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger2.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger2.java @@ -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$ }