From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2044.outbound.protection.outlook.com [40.107.22.44]) by sourceware.org (Postfix) with ESMTPS id 67B643858D35 for ; Mon, 22 Apr 2024 15:29:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67B643858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 67B643858D35 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.22.44 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1713799754; cv=pass; b=UCSQoDuOyaHHUXWaLTl/0S1THKQUGdnZ2CWyERGxh1XtiuY93kQfqlN7fhz9Wnlz86lKTv5bsnuJL5QjeeZigSugRcfaAWcMes9UtgAjHP8+QgN8gw4W9x2kbL5g/JR6G4FMGFvV1nuVeihBJ2gyZYms1EpEl0L/ALNJnzMYoOk= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1713799754; c=relaxed/simple; bh=+ieg4cfzG0SIYooGLlJ1TYhCkb93yVYcTyZ6D4QHXiI=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:Subject:To:From: MIME-Version; b=RWCynit0mEpY4klsrRZvnsbSQo6zUBGl0U75QxHWIQL1z6YbFEhXHFommiZoj1RiB9dd0scdlAJJU3+w6ZFW+8TGZuhELgSEtee+S+h1sYQrd3jhwBYQdkx26XK6XFM8k6eIEa9R4+5c2soQQWgr7gJij1V35JyiQ1IKf7F0qvc= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=kg0nJyn75Be4tv8+AZ7KIuTxYfu4rlqKdh1g3FdmVjPYQN8q4wjocLDOFndBPbPGTu4WZW5OtDhHDhoLQ63S73+dVZtCjr5tmG9wNRcr+vCYU7MRjsx+s32v7tB3fI9biHztyYN23g1KB5fP4njf17Oo9EQ71NQkLMzGf4yB77rqIGie04i2sjkeaoOlhZ/f4lmFp2v8RG62a2y1/Gam3Q/NRw0qt3aHuyyN3jaFmooP5OwzVzca8b2mrgCksjLpfBupScB16vDj5L325XTEMNob7HulugqmF6m6C/lwh4q2RVea2QItJmXH5HCBAAf6WpfBcpXn1YU/8qO9Kk5wWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KCaUREzjvsUmyCRqO8ntcqZGlEJ+k+OwQ6ipNyGZgKg=; b=SXj0TXeVHys+OqJ0RodXAK4ZLAxDvESNqk0zWJM3iZy83xOPPRevkuhoxSrOolAabo1CG0pNl7miCIWMONVGTBQWvSXw7PEzPvvl03dDmU+6JqzfzMeLVuuBU3QMtY9dRShI+kyMgjU/9BaOQ1BOyihpt99Byt7IVQXe8qmxlagqrRsyvc/9+KR/7x5lMvWptOCzVulVTjqf9eWSFd4dqCzyZYTpo+Calv+vCjH71/MYSfVN167msyAvkMhvDRUwUndc4GxnPI1KQt9B+o5tlAhCUe5UT+shRqch8A1D5umXwWOaIA6IBs3eidpfEpUk0s0aMK5D3Z+hmR0j5nov4Q== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KCaUREzjvsUmyCRqO8ntcqZGlEJ+k+OwQ6ipNyGZgKg=; b=RtO58POhz6CLlU072EtxoW+EWb5TMBZUUNKqq3iCi0yiP+68ZVd5FmfN4yo37d/XWetuJOz+5CCKQm7F1t2pYBbqVne5PvrTZkBEgovQw4qfHe1M4saZ3qHG0QLHeTVYabhswfgZD15LtVGKTszUcxeqwk5azlNoA6q4OPk4kP0= Received: from AS9PR06CA0484.eurprd06.prod.outlook.com (2603:10a6:20b:49b::10) by AS2PR08MB8693.eurprd08.prod.outlook.com (2603:10a6:20b:55c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 14:39:17 +0000 Received: from AM1PEPF000252DD.eurprd07.prod.outlook.com (2603:10a6:20b:49b:cafe::d4) by AS9PR06CA0484.outlook.office365.com (2603:10a6:20b:49b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.34 via Frontend Transport; Mon, 22 Apr 2024 14:39:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM1PEPF000252DD.mail.protection.outlook.com (10.167.16.55) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7519.19 via Frontend Transport; Mon, 22 Apr 2024 14:39:17 +0000 Received: ("Tessian outbound f1e9a43166b5:v313"); Mon, 22 Apr 2024 14:39:17 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 021e9d14f5929ac3 X-CR-MTA-TID: 64aa7808 Received: from 85fe4e64a15a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F73E0E79-3D38-4D08-94C7-D266E128799E.1; Mon, 22 Apr 2024 14:39:11 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 85fe4e64a15a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 22 Apr 2024 14:39:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dEo6Cldd1gezX2PcY4nbeP+KUTZ5q0J9sen1WMPjS/PSw2SPvm3UaBPj6wDouIcdm3oLEnBe4cnP4PLZJ68AQJJ53b14HTFwv9KpGvXjuxNXzAJ0m/OQCfH1W6RZlALAC2qxNFpZWUNR9hmtX57k6rEb7XSYXZKvZ8hudDDE58YY4kf54RWs31xrnw9RMuu1q3K04OAzlrwf89MwRJ2ep6jt5wERgV2xd+8iy4JQxwMYclnn9qnqPXzU3Xs3Q2oZbyN0ZHilxABA/Ns6RM3pqtws+I0G15WMrTZyMrpiphcv7OlCHDPEjLhpYWqtEQhNkY/+HmZjzCCArHwHKt63TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KCaUREzjvsUmyCRqO8ntcqZGlEJ+k+OwQ6ipNyGZgKg=; b=WyYB0GlUwKoYYtsulD1BwLTY74GLCKl72pbWkKooID04LmH9mNenftIE6qZGu46uj1GrpaaWvT0Rx7UW7F0jmWt/QItdZyaoxBE/TCNPMKaVTHQ6XBazq6f2a7t07X6U+psFMmpNHnwG3Mm1gvlJ5y66A3ZtGEEbwTEh2YUDtqykQC161FUJpAFcQBA0uL1b7fF6nYXP5juCcE7OiDMK6d9jyB+sGBALOVmv28JkAxlszoGSNxaTonmLbk4qp/QJGMpR8fXlTo5GrW09zmVtyziPW+gloefbXGDv2tpijMSfRcbM4dU0eGQjeNYKTOKJdwLp8HMBjf/pMzy+0sQ9+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KCaUREzjvsUmyCRqO8ntcqZGlEJ+k+OwQ6ipNyGZgKg=; b=RtO58POhz6CLlU072EtxoW+EWb5TMBZUUNKqq3iCi0yiP+68ZVd5FmfN4yo37d/XWetuJOz+5CCKQm7F1t2pYBbqVne5PvrTZkBEgovQw4qfHe1M4saZ3qHG0QLHeTVYabhswfgZD15LtVGKTszUcxeqwk5azlNoA6q4OPk4kP0= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS2PR08MB9000.eurprd08.prod.outlook.com (2603:10a6:20b:5fd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 14:39:09 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::77d4:d040:b19d:6472]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::77d4:d040:b19d:6472%4]) with mapi id 15.20.7472.044; Mon, 22 Apr 2024 14:39:08 +0000 Message-ID: Date: Mon, 22 Apr 2024 15:39:06 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] gdb/testsuite: Add gdb.base/memops-watchpoint.exp Content-Language: en-US To: Thiago Jung Bauermann , gdb-patches@sourceware.org References: <20240421222657.1052635-1-thiago.bauermann@linaro.org> <20240421222657.1052635-3-thiago.bauermann@linaro.org> From: Luis Machado In-Reply-To: <20240421222657.1052635-3-thiago.bauermann@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0664.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:316::8) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS2PR08MB9000:EE_|AM1PEPF000252DD:EE_|AS2PR08MB8693:EE_ X-MS-Office365-Filtering-Correlation-Id: 075d054f-5387-4c4b-c56f-08dc62d9fd08 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: =?utf-8?B?RXNKdk9kcDNaMkpLSmo2aDFZS0NFY05sNm41MllqYllSZ1AvWDhnQnVsUnNs?= =?utf-8?B?N1hOQUtNUjBEWmY1YmFQNFoyN25rRTMvam01T20vNTBSWW9XcnRuckRSUmNN?= =?utf-8?B?NytVSWFJU3FvcWxDendrZlJsNml5UDZjZ1lPU1VubGtuVUhXZkpwbEkrdXY1?= =?utf-8?B?WFBqdEtIeEdIY0ZkQ1BGWjF1N3NiMTk2S0ZPaCt2aVptWEorcE9YRlhjZmFY?= =?utf-8?B?OVh4R2Y5TzB1UG1RajFVM29xcS9LeHJsQ3N2STRQOHYzdXFKNUYwd1pHemNi?= =?utf-8?B?bm5IRzhqUDVKemtQZTlCcS9JQXJWenUvNnUwQVRoY3AwNG5uN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wb2l4Z0lrcllES1BOelZO?= =?utf-8?B?TEZRdzM3dnBDUmVBdnlBWmJWMWpjVFcrQVVzUTlZL1FIVk0vQ1UvTGQyaGFY?= =?utf-8?B?bi84OGYxRUlrSDU1dUhOQTE4dEdhU01EU1BBTnVROU9wc1prN3FlOHZUSExl?= =?utf-8?B?N21HZG9jWnhyT09BUnVzSVo0elZucy9IOEVCdG9zR1FCcUEwVTFrS1lNNGgy?= =?utf-8?B?bzVWZUI3VU9WK05EVll0VkdxQXl2SnRBcVJZQ1U0a0FrNVhiYStNTUNyTGZj?= =?utf-8?B?SUxqZXdvcDB3VW5YMEVyUkhjMEhkSFNhckVhS3VuM0NNMEIzQTZaYk9CYXo2?= =?utf-8?B?V1ZNR1JJUkZqenpQSjlVcmVDamJNSTdEUnFoUzRpM2hJdFFtbzJ2eHNSNDQ4?= =?utf-8?Q?abPQEMAQNvNxNaklockeEg/AuqXWC3kDqczSiYVtpiS4=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB9000 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM1PEPF000252DD.eurprd07.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 22107b33-09e6-4c09-b0b5-08dc62d9f787 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?b3FzTWdIak1yajlYdU02RDdyRHlmSXVnNUdIZkQ3UXVBenkzb0U0SVl0OTdq?= =?utf-8?B?dzQ0RVRtS2ZuMFlwV1ZYSHc0YTRGYkpkMGFDc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ckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(82310400014)(376005)(36860700004)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 14:39:17.1622 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 075d054f-5387-4c4b-c56f-08dc62d9fd08 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM1PEPF000252DD.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8693 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,KAM_SHORT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, On 4/21/24 23:26, Thiago Jung Bauermann wrote: > Test behaviour of watchpoints triggered by libc's memset/memcpy/memmove. > These functions are frequently optimized with specialized instructions > that favor larger memory access operations, so make sure GDB behaves > correctly in their presence. > > There's a separate watched variable for each function so that the testcase > can test whether GDB correctly identified the watchpoint that triggered. > > Also, the watchpoint is 28 bytes away from the beginning of the buffer > being modified, so that large memory accesses (if present) are exercised. > > PR testsuite/31484 > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31484 > --- > gdb/testsuite/gdb.base/memops-watchpoint.c | 45 ++++++++++ > gdb/testsuite/gdb.base/memops-watchpoint.exp | 86 ++++++++++++++++++++ > 2 files changed, 131 insertions(+) > create mode 100644 gdb/testsuite/gdb.base/memops-watchpoint.c > create mode 100644 gdb/testsuite/gdb.base/memops-watchpoint.exp > > NB: As with v1, please let me know if you think there are more interesting > tests regarding watchpoint and memory accesses that can be done. I tried > to make it cover the interesting scenarios but the testcase is small, so > maybe I'm not very creative. > > Changes in v2: > - Ensure watchpoints are aligned to 4 bytes. > - Add kfail for arm-linux. > > diff --git a/gdb/testsuite/gdb.base/memops-watchpoint.c b/gdb/testsuite/gdb.base/memops-watchpoint.c > new file mode 100644 > index 000000000000..0255cfb43404 > --- /dev/null > +++ b/gdb/testsuite/gdb.base/memops-watchpoint.c > @@ -0,0 +1,45 @@ > +/* This test program is part of GDB, the GNU debugger. > + > + Copyright 2024 Free Software Foundation, Inc. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 3 of the License, or > + (at your option) any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program. If not, see . */ > + > +#include > +#include > + > +int > +main (void) > +{ > + /* Some targets need 4-byte alignment for hardware watchpoints. */ > + char s[40] __attribute__ ((aligned (4))) > + = "This is a relatively long string..."; > + char a[40] __attribute__ ((aligned (4))) > + = "String to be overwritten with zeroes"; > + char b[40] __attribute__ ((aligned (4))) > + = "Another string to be memcopied..."; > + char c[40] __attribute__ ((aligned (4))) > + = "Another string to be memmoved..."; > + > + /* Break here. */ > + memset (a, 0, sizeof (a)); > + > + memcpy (b, s, sizeof (b)); > + > + memmove (c, s, sizeof (c)); > + > + printf ("b = '%s'\n", b); > + printf ("c = '%s'\n", c); > + > + return 0; > +} > diff --git a/gdb/testsuite/gdb.base/memops-watchpoint.exp b/gdb/testsuite/gdb.base/memops-watchpoint.exp > new file mode 100644 > index 000000000000..0edc646e67aa > --- /dev/null > +++ b/gdb/testsuite/gdb.base/memops-watchpoint.exp > @@ -0,0 +1,86 @@ > +# Copyright 2024 Free Software Foundation, Inc. > + > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License as published by > +# the Free Software Foundation; either version 3 of the License, or > +# (at your option) any later version. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program. If not, see . > + > +# Test a binary that uses standard libc memory operation functions. They are > +# frequently optimized with specialized instructions, so make sure GDB behaves > +# correctly in their presence. > + > +# It's not possible to check in which libc function the watchpoint triggers > +# without its debug info. > +require libc_has_debug_info > + > +standard_testfile > + > +set options "-fno-builtin-memset -fno-builtin-memcpy -fno-builtin-memmove" > +if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \ > + [list debug additional_flags=$options]] } { > + return -1 > +} > + > +set linespec ${srcfile}:[gdb_get_line_number "Break here"] > + > +if ![runto ${linespec}] { > + return > +} > + > +gdb_test "watch -location a\[28\]" \ > + "(Hardware w|W)atchpoint ${decimal}: -location a\\\[28\\\]" \ > + "set watch on a" > +gdb_test "watch -location b\[28\]" \ > + "(Hardware w|W)atchpoint ${decimal}: -location b\\\[28\\\]" \ > + "set watchpoint on b" > +gdb_test "watch -location c\[28\]" \ > + "(Hardware w|W)atchpoint ${decimal}: -location c\\\[28\\\]" \ > + "set watchpoint on c" > + > +setup_kfail breakpoints/31665 arm*-*-linux* > +gdb_test "continue" \ > + [multi_line \ > + "Continuing\\." \ > + "" \ > + "(Hardware w|W)atchpoint ${decimal}: -location a\\\[28\\\]" \ > + "" \ > + "Old value = 104 'h'" \ > + "New value = 0 '\\\\000'" \ > + ".*memset.* \\(\\) at .*:$decimal" \ > + ".*"] \ > + "continue until memset watchpoint hits" > + > +setup_kfail breakpoints/31665 arm*-*-linux* > +gdb_test "continue" \ > + [multi_line \ > + "Continuing\\." \ > + "" \ > + "(Hardware w|W)atchpoint ${decimal}: -location b\\\[28\\\]" \ > + "" \ > + "Old value = 101 'e'" \ > + "New value = 114 'r'" \ > + ".*memcpy.* \\(\\) at .*:$decimal" \ > + ".*"] \ > + "continue until memcpy watchpoint hits" > + > +# Note: Some architectures use memcpy for memmove. > +setup_kfail breakpoints/31665 arm*-*-linux* > +gdb_test "continue" \ > + [multi_line \ > + "Continuing\\." \ > + "" \ > + "(Hardware w|W)atchpoint ${decimal}: -location c\\\[28\\\]" \ > + "" \ > + "Old value = 100 'd'" \ > + "New value = 114 'r'" \ > + ".*(memmove|memcpy).* \\(\\) at .*:$decimal" \ > + ".*"] \ > + "continue until memmove watchpoint hits" For this test, on aarch64 I see full passes, but on 32-bit Arm I see 3 passes and 3 kfail's. Is that the expected outcome?