This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] switch-threads.exp added tests.


On Tue, Jun 14, 2005 at 02:35:05PM -0500, Manoj Iyer wrote:
> +gdb_test "info threads" "\\* .*2 Thread.*.LWP.* .*thread_func.*"
> +gdb_test "thread 1" ".*Switching to thread 1.*"
> +gdb_test "next" ".*foo \\(\\).*\[0-9\]*"
> +gdb_test "thread 2" ".*Switching to thread 2.*"

The numbers of threads depend on the operating system, and on the order
in which GDB notices new threads.  For instance the LinuxThreads
manager thread, or a remote target which does not report new threads
immediately.

Also the format of "info threads" output is target specific.  LWP comes
from the Linux specific native code.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]