Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2006-04-16 05:03:28 +0000
committerMikhail Khodjaiants2006-04-16 05:03:28 +0000
commite8636fc09935458d4d904f0ce68f6e06a0d328d2 (patch)
tree09c73e4c6b66566ecef2a791391eb39a583c204e /debug/org.eclipse.cdt.debug.mi.core
parent9fe6b60793ab8ecfc723c1f604e55f89cf3ee078 (diff)
downloadorg.eclipse.cdt-e8636fc09935458d4d904f0ce68f6e06a0d328d2.tar.gz
org.eclipse.cdt-e8636fc09935458d4d904f0ce68f6e06a0d328d2.tar.xz
org.eclipse.cdt-e8636fc09935458d4d904f0ce68f6e06a0d328d2.zip
Bug 113107: Make trace logs more readily available.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.core')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/AbstractGDBCDIDebugger.java13
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/IMILaunchConfigurationConstants.java12
3 files changed, 29 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
index 641bc208772..b02333871ae 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-16 Mikhail Khodjaiants
+ Bug 113107: Make trace logs more readily available.
+ * AbstractGDBCDIDebugger.java
+ * IMILaunchConfigurationConstants.java
+
2006-04-13 Mikhail Khodjaiants
Bug 113107: Make trace logs more readily available.
Core support for the "Verbose Mode" action.
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/AbstractGDBCDIDebugger.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/AbstractGDBCDIDebugger.java
index c5318316041..5b414294b62 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/AbstractGDBCDIDebugger.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/AbstractGDBCDIDebugger.java
@@ -62,6 +62,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
if ( monitor.isCanceled() ) {
throw new OperationCanceledException();
}
+ boolean verboseMode = verboseMode( launch.getLaunchConfiguration() );
Session session = createGDBSession( launch, executable, monitor );
if ( session != null ) {
try {
@@ -72,6 +73,7 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
IProcess debuggerProcess = createGDBProcess( (Target)targets[i], launch, debugger, renderDebuggerProcessLabel( launch ), null );
launch.addProcess( debuggerProcess );
}
+ ((Target)targets[i]).enableVerboseMode( verboseMode );
((Target)targets[i]).getMISession().start();
}
doStartSession( launch, session, monitor );
@@ -197,4 +199,15 @@ abstract public class AbstractGDBCDIDebugger implements ICDIDebugger2 {
protected IProcess createGDBProcess( Target target, ILaunch launch, Process process, String label, Map attributes ) {
return new GDBProcess( target, launch, process, label, attributes );
}
+
+ protected boolean verboseMode( ILaunchConfiguration config ) {
+ boolean result = IMILaunchConfigurationConstants.DEBUGGER_VERBOSE_MODE_DEFAULT;
+ try {
+ return config.getAttribute( IMILaunchConfigurationConstants.ATTR_DEBUGGER_VERBOSE_MODE, result );
+ }
+ catch( CoreException e ) {
+ // use default
+ }
+ return result;
+ }
}
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/IMILaunchConfigurationConstants.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/IMILaunchConfigurationConstants.java
index 8316530d480..af37ae2883d 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/IMILaunchConfigurationConstants.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/IMILaunchConfigurationConstants.java
@@ -69,8 +69,18 @@ public interface IMILaunchConfigurationConstants {
public static final String ATTR_DEBUGGER_COMMAND_FACTORY = MIPlugin.getUniqueIdentifier() + ".commandFactory"; //$NON-NLS-1$
/**
- * launch configuration attribute key. The value is a string specifying the protocol to
+ * Launch configuration attribute key. The value is a string specifying the protocol to
* use. For now only "mi", "mi1", "m2", "mi3" are supported.
*/
public static final String ATTR_DEBUGGER_PROTOCOL = MIPlugin.getUniqueIdentifier() + ".protocol"; //$NON-NLS-1$
+
+ /**
+ * Launch configuration attribute key. The value is a boolean specifying the mode of the gdb console.
+ */
+ public static final String ATTR_DEBUGGER_VERBOSE_MODE = MIPlugin.getUniqueIdentifier() + ".verboseMode"; //$NON-NLS-1$
+
+ /**
+ * Launch configuration attribute value. The key is ATTR_DEBUGGER_VERBOSE_MODE.
+ */
+ public static final boolean DEBUGGER_VERBOSE_MODE_DEFAULT = false;
}

Back to the top