[padb] r430 committed - Use official mi commands rather than gdb commands when attaching...
padb at googlecode.com
padb at googlecode.com
Sat Feb 19 21:51:51 GMT 2011
Revision: 430
Author: apittman at gmail.com
Date: Sat Feb 19 13:51:03 2011
Log: Use official mi commands rather than gdb commands when attaching
and telling gdb to quit.
http://code.google.com/p/padb/source/detail?r=430
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Sat Feb 19 13:45:30 2011
+++ /trunk/src/padb Sat Feb 19 13:51:03 2011
@@ -6152,7 +6152,7 @@
}
return;
}
- gdb_send( $gdb, 'quit' );
+ gdb_send( $gdb, '-gdb-exit' );
waitpid $gdb->{gdbpid}, 0;
foreach my $fdname (qw(rdr wtr err)) {
next unless exists $gdb->{$fdname};
@@ -6177,7 +6177,7 @@
}
send_cont_signal($pid);
- my %p = gdb_n_send( $gdb, "attach $pid" );
+ my %p = gdb_n_send( $gdb, "-target-attach $pid" );
if ( not defined $p{status} ) {
$gdb->{error} = 'Failed to attach to process';
@@ -6249,7 +6249,7 @@
send_cont_signal($pid);
- _gdb_send_real_async_start( $gdb, "attach $pid" );
+ _gdb_send_real_async_start( $gdb, "-target-attach $pid" );
return;
}
More information about the padb-devel
mailing list