1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-08 01:25:23 +02:00

Show the gdb arguments when tracing.

This commit is contained in:
Mikhail Khodjaiants 2003-12-16 20:14:19 +00:00
parent 18c0d5ab97
commit 011ed212ae
2 changed files with 16 additions and 0 deletions

View file

@ -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.

View file

@ -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() {