Discussion:
[Bug gdb/23325] New: Hardware watchpoints on attach for debian-jessie-s390x-1 do not seem to trigger
richard.bunt at arm dot com
2018-06-21 16:13:06 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23325

Bug ID: 23325
Summary: Hardware watchpoints on attach for
debian-jessie-s390x-1 do not seem to trigger
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: richard.bunt at arm dot com
Target Milestone: ---

Overview:
watchpoint-hw-attach.exp was added in 8363f9d5f2fab2c8b5a25c35c572f0426a716b66
to assert that hardware watchpoints are used on attach (if they are available).
This was tested on various aarch64 and x86 platforms but this test case appears
to fail on debian-s390x:

Running
/home/dje/debian-jessie-s390x-1/debian-s390x/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watchpoint-hw-attach.exp
...
PASS: gdb.base/watchpoint-hw-attach.exp: continue to breakpoint: pidacquired
PASS: gdb.base/watchpoint-hw-attach.exp: get integer valueof "mypid"
PASS: gdb.base/watchpoint-hw-attach.exp: detach
PASS: gdb.base/watchpoint-hw-attach.exp: attach 15743
PASS: gdb.base/watchpoint-hw-attach.exp: set should_continue = 1
FAIL: gdb.base/watchpoint-hw-attach.exp: continue to breakpoint:
prewatchtrigger (the program exited)
PASS: gdb.base/watchpoint-hw-attach.exp: watch watched_variable
FAIL: gdb.base/watchpoint-hw-attach.exp: continue (the program is no longer
running)

Steps to Reproduce:
This failure can be reproduced by running watchpoint-hw-attach.exp on
debian-s390x.

Expected Results:
I would expect this test case to succeed if hardware watchpoints are available.

Build:
https://gdb-build.sergiodj.net/builders/Debian-s390x-m64/builds/5688/steps/regressions/logs/regressions
https://gdb-build.sergiodj.net/builders/Debian-s390x-m64/builds/5688/steps/regressions/logs/stdio
--
You are receiving this mail because:
You are on the CC list for the bug.
richard.bunt at arm dot com
2018-06-21 16:13:23 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23325

Richard Bunt <richard.bunt at arm dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |richard.bunt at arm dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
richard.bunt at arm dot com
2018-06-25 16:43:27 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23325

--- Comment #1 from Richard Bunt <richard.bunt at arm dot com> ---
Thanks to the input from sergiodj and palves on the IRC channel, it was
concluded that the test case incorrectly assumed that on attach it was landed
in the top-most frame of the inferior. This was fixed by running to a break
point in main by explicitly defining the source file name before continuing
with the test.

Working on a fix to the test case.
--
You are receiving this mail because:
You are on the CC list for the bug.
richard.bunt at arm dot com
2018-06-28 14:53:51 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23325

Richard Bunt <richard.bunt at arm dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED

--- Comment #2 from Richard Bunt <richard.bunt at arm dot com> ---
All working on this machine now.
https://gdb-build.sergiodj.net/builders/Debian-s390x-m64/builds/5731/steps/regressions/logs/stdio
--
You are receiving this mail because:
You are on the CC list for the bug.
palves at redhat dot com
2018-06-28 16:48:31 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23325

Pedro Alves <palves at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
Target Milestone|--- |8.2
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...