After discussing with Andrew, it was suggested that watchthreads.exp be given its own C file which is a copy of schedlock.c. This new patch replaces the old one below. Hopefully, someone will get a chance to look at it. Ok to commit? -- Jeff J. 2004-10-04 Jeff Johnston * gdb.threads/watchthreads.c: New file for use by watchthreads.exp. * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find breakpoint lines and switch to use watchthreads.c. Jeff Johnston wrote: > The following fixes problems introduced by changes to schedlock.c which > watchthreads.exp also uses. It switches to use gdb_get_line_number so > that the file can change freely without affecting the watchthreads.exp > test case. > > Ok to commit? > > -- Jeff J. > > 2004-09-28 Jeff Johnston > > * gdb.threads/schedlock.c: Add comment markers to use to find > line numbers. > * gdb.threads/schedlock.exp: Adjust regex to handle the new > comments. > * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find > breakpoint lines. > >