[padb] r431 committed - Only select thread by id if there is more than one thread.
padb at googlecode.com
padb at googlecode.com
Sat Feb 19 21:55:51 GMT 2011
Revision: 431
Author: apittman at gmail.com
Date: Sat Feb 19 13:54:26 2011
Log: Only select thread by id if there is more than one thread.
http://code.google.com/p/padb/source/detail?r=431
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Sat Feb 19 13:51:03 2011
+++ /trunk/src/padb Sat Feb 19 13:54:26 2011
@@ -7885,7 +7885,9 @@
next unless $thread_id eq $id;
}
my %t = ( id => $id );
- gdb_send( $gdb, "-thread-select $id" );
+ if ( $data->{'number-of-threads'} != 1 ) {
+ gdb_send( $gdb, "-thread-select $id" );
+ }
@{ $t{frames} } = gdb_dump_frames( $gdb, $detail );
push @th, \%t;
}
More information about the padb-devel
mailing list