From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 72AF03858C83; Fri, 14 Apr 2023 09:55:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72AF03858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681466135; bh=td543fn4vuiToppSBtQ0DOSQyTSgIrcfFJKStDi31fA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j2DJ7ANCU+H5FN53uymPqJvjCwpxcOBNMDCwkrc4regvzNAtp8hK6/ZIEKxLwo0F9 h24jtM6WmIVuqP8X5CSJfZc7SdQybntbG8ATWVdp3rPZsQTTKiWNqPBvIJ8NxDsMER aBp29STVXnvlQXGK0c2+FKZ7Jxpzg/qkpDH6fSIY= From: "luis.machado at arm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/30340] gdb.base/watchpoint-unaligned.exp produces TCL error Date: Fri, 14 Apr 2023 09:55:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luis.machado at arm dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30340 --- Comment #8 from Luis Machado --- Thanks! The ptrace requests for the debug registers seem to be going through just f= ine: ptrace(PTRACE_GETREGSET, 1832792, NT_ARM_HW_WATCH, {iov_base=3D0xffffc0ea3b= 88, iov_len=3D264}) =3D 0 ptrace(PTRACE_GETREGSET, 1832792, NT_ARM_HW_BREAK, {iov_base=3D0xffffc0ea3b= 88, iov_len=3D264}) =3D 0 I think this rules out permissions issues with ptrace, and we're back at suspecting the architecture level comparisons. Since you have ready access to the hardware, would you mind running a quick check on your side? In gdb/nat/aarch64-linux-hw-point.c:compatible_debug_arch, could you please= add a warning statement printing the debug_arch? Like we do for example in aarch64_linux_get_debug_reg_capacity when printing the number of watchpoints/breakpoints. Then rebuild gdb, run the test (to create the test executable) and attempt = to run that same command line we used for strace. Could you then paste the architecture level that is printed? Also, could you please paste the output of "cat /proc/cpuinfo"? Thanks! --=20 You are receiving this mail because: You are on the CC list for the bug.=