[Bug breakpoints/34280] [gdb/breakpoints] FAIL: gdb.threads/sw-watchpoint-step-over-bp-with-threads.exp: target-non-stop=auto: displaced-stepping=auto: gdb_breakpoint: set breakpoint at 64

"vries at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34280

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This triggers it fairly reliably, without needing to stress the system:
...
diff --git
a/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.c
b/gdb/testsuite/gdb
.threads/sw-watchpoint-step-over-bp-with-threads.c
index f05304749e2..26f595945b5 100644
--- a/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.c
+++ b/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.c
@@ -28,7 +28,7 @@ thread_func (void *arg)
   pthread_barrier_wait (&threads_started_barrier);

   while (1)
-    sleep (1);
+    usleep (1000);

   return NULL;
 }
diff --git
a/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.exp
b/gdb/testsuite/g
db.threads/sw-watchpoint-step-over-bp-with-threads.exp
index 3dac2b85987..cee7fe50398 100644
--- a/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.exp
+++ b/gdb/testsuite/gdb.threads/sw-watchpoint-step-over-bp-with-threads.exp
@@ -68,7 +68,7 @@ proc test {target-non-stop displaced-stepping} {
     # incorrectly install a software single-step breakpoint on threads
     # other than the main one.
     gdb_test_multiple "cont" "continue to watchpoint" {
-       -re -wrap "Continuing.*Watchpoint.*watched_global.*Old value = 0.*New
value = 1.*" {
+       -re -wrap "Continuing.*Thread 1.*Watchpoint.*watched_global.*Old value
= 0.*New value = 1.*
" {
            pass $gdb_test_name
        }
     }
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.