diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index 2a8845d816b..5cebc7dbcb8 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -1,3 +1,9 @@ +2003-12-16 Mikhail Khodjaiants + + Show the gdb arguments when tracing. + + * src/org/eclipse/cdt/debug/mi/core/MIPlugin.java + 2003-12-16 Mikhail Khodjaiants Fix for PR 48870: Terminate gdb if attach to process fails. diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java index d7effcae677..c2b458da05e 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java @@ -329,6 +329,16 @@ public class MIPlugin extends Plugin { * @throws IOException */ protected Process getGDBProcess(String[] args) throws IOException { + if ( getDefault().isDebugging() ) + { + StringBuffer sb = new StringBuffer(); + for ( int i = 0; i < args.length; ++i ) + { + sb.append( args[i] ); + sb.append( ' ' ); + } + getDefault().debugLog( sb.toString() ); + } final Process pgdb = ProcessFactory.getFactory().exec(args); Thread syncStartup = new Thread("GDB Start") { public void run() {