diff options
author | Mikhail Khodjaiants | 2003-12-16 20:14:19 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2003-12-16 20:14:19 +0000 |
commit | 011ed212aeecac26c34cfc76fb36a0566e25e079 (patch) | |
tree | 2168cbcf097d3d573543641c835cd051cefd2640 /debug | |
parent | 18c0d5ab97e5915263b514d1f6856acf44a90f5b (diff) | |
download | org.eclipse.cdt-011ed212aeecac26c34cfc76fb36a0566e25e079.tar.gz org.eclipse.cdt-011ed212aeecac26c34cfc76fb36a0566e25e079.tar.xz org.eclipse.cdt-011ed212aeecac26c34cfc76fb36a0566e25e079.zip |
Show the gdb arguments when tracing.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/ChangeLog | 6 | ||||
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIPlugin.java | 10 |
2 files changed, 16 insertions, 0 deletions
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,5 +1,11 @@ 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. * src/org/eclipse/cdt/debug/mi/core/MIPlugin.java 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() { |