[padb] r433 committed - Revert to using attach rather than -target-attach as some versions...

padb at googlecode.com padb at googlecode.com
Wed Mar 30 19:50:15 BST 2011


Revision: 433
Author:   apittman at gmail.com
Date:     Wed Mar 30 11:49:32 2011
Log:      Revert to using attach rather than -target-attach as some versions
of gdb don't like using the documentated method.

http://code.google.com/p/padb/source/detail?r=433

Modified:
  /trunk/src/padb

=======================================
--- /trunk/src/padb	Sat Feb 19 13:58:31 2011
+++ /trunk/src/padb	Wed Mar 30 11:49:32 2011
@@ -6177,7 +6177,7 @@
      }

      send_cont_signal($pid);
-    my %p = gdb_n_send( $gdb, "-target-attach $pid" );
+    my %p = gdb_n_send( $gdb, "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, "-target-attach $pid" );
+    _gdb_send_real_async_start( $gdb, "attach $pid" );

      return;
  }
@@ -6257,7 +6257,7 @@
  sub gdb_attach_async_end {
      my ( $gdb, $pid ) = @_;

-    my %p = _gdb_send_real_async_wait( $gdb, "-target-attach $pid" );
+    my %p = _gdb_send_real_async_wait( $gdb, "attach $pid" );

      if ( not defined $p{status} ) {
          $gdb->{error} = 'Failed to attach to process';




More information about the padb-devel mailing list