This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] switch-threads.exp added tests.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Manoj Iyer <manjo at austin dot ibm dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 14 Jun 2005 15:50:31 -0400
- Subject: Re: [RFC] switch-threads.exp added tests.
- References: <Pine.LNX.4.58.0506141408560.17509@lazy>
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