[RFC] switch-threads.exp added tests.

Daniel Jacobowitz drow@false.org
Tue Jun 14 19:50:00 GMT 2005


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



More information about the Gdb-patches mailing list