From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 6D5003858D33 for ; Thu, 23 Nov 2023 05:54:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D5003858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6D5003858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700718857; cv=none; b=srcHGLqLkZpqMkHupOtJ6b+9TsYiPANcPN4eDLtthRBMmuOrpkdied1cjqg6iaffV6Fd9OCFUwM8kn0mv3BAQyKyVDLHfkSvkvmsa1s9P61OrJhlFvzy0r7iHDpMVA95yvg5CY5AhHPhQsQg8pjoAP6hsSWcEz0yqBjuZAMqUok= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700718857; c=relaxed/simple; bh=OB05lOHosOxuBxLBApSBPyi766RPtqn/0iGDjfG7EOk=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=bwnUNhGFTxlyFu/WzkMhg/E8SkZD79oIS9cwh+nTfFGZzbJFRk8P/hfin335UjVpuOKO8PqQjMNlempMK60JIBlfbapHUPLep+nJr2Kso6TUrW4CoqbzZlYSSdrqVF98P4aG+gJIFbbtqVuw/eu1hAUgyXZuobc+Qaw75XXqjGs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AMMu1L4032589; Wed, 22 Nov 2023 23:33:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=+8wqj0N8ep3fkiPRXbK39SBI0dRIWDLStzUiiDM+ip0=; b=KWn6Bb3kkvBJ2kJB5dLF48j6b26buWinESWHotkRsFJKWcqx3Vh4BhnDJPUfp/GSarxN 48IDcctjbgAvueKAms1DPsB4AxwaVr+xzqWgIgHiONYD7lpKn2TG9nRK51TxEHQSj8il mXGm/NcLcSWdLXGmxFxCPDprUihLyQeblwzZUdlMDqaSVNu4/aG6uZ1X7mqXqD0cHPUu VP5d5v3jbOsfaTV9qtMbttkqTDBF9KEsdlGhLCIwx4Q2uigW8KmSDyUaB6a+mnufzyJu GrTmGeUEHeEv8erQjWJ5vgaT5WU2HDigIwoN8S04srH2k0bD/QGvuWcqlovbaTsT7+1F lQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uhtvcrqpg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 23:33:06 +0000 Received: from m0360072.ppops.net (m0360072.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AMNLRVu005437; Wed, 22 Nov 2023 23:33:05 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3uhtvcrqp7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 23:33:05 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AML4LVo017387; Wed, 22 Nov 2023 23:33:05 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3uf8kp3khy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 22 Nov 2023 23:33:05 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AMNX4fZ3015168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Nov 2023 23:33:04 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29C4A5805F; Wed, 22 Nov 2023 23:33:04 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B969A5805A; Wed, 22 Nov 2023 23:33:02 +0000 (GMT) Received: from wecm-9-67-78-200.wecm.ibm.com (unknown [9.67.78.200]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 22 Nov 2023 23:33:02 +0000 (GMT) Message-ID: <5483d77c72088a1e4d5dfed2eded2366643fc659.camel@linux.ibm.com> Subject: [ PATCH 0/3] Fix GDB reverse execution behavior From: Carl Love To: Luis Machado , blarsen@redhat.com, Ulrich Weigand , gdb-patches@sourceware.org Cc: cel@linux.ibm.com, Pedro Alves , Tom Tromey , Simon Marchi Date: Wed, 22 Nov 2023 15:33:01 -0800 In-Reply-To: References: <890101c23dd5fa60fcbf9d4b299cb2a533c260b7.camel@linux.ibm.com> <1e702d8f-e5b4-4719-b1e7-42210f350305@arm.com> <643afce1-ab9b-4e8b-bcbb-5738dc409a28@arm.com> <9e17008084c34f953f5318933436ec703250120a.camel@linux.ibm.com> <92a751d1-a4b9-4c21-821e-a1dc67207516@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: PS_Z3UIwh80QXkmu41xpN7ph8MXr0gb- X-Proofpoint-ORIG-GUID: Y_2WkX3GCv1uqqsn_792qisXBY4e5niF Content-Transfer-Encoding: 7bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-22_18,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 mlxscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 mlxlogscore=668 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311220173 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: GDB developers: The patch "[PATCH 2/2 ver 8] Fix reverse stepping multiple contiguous PC ranges over the line table", https://sourceware.org/pipermail/gdb-patches/2023-August/201889.html was posted and pinged several times without any response from the developers. It was reviewed by Guinevere Larsen. The original patch 2 was intended to fix failures on PowerPC and AArch64. An additional architecture independent change and test was added per feedback from the community. Based on some private discussions on how best to get the patch approved, it was suggested that I should break the patch in two to make it easier to review. Specifically, separate out the PowerPC and AArch64 fixes from the generic architecture independent changes. The original patch 2 has been split up as suggested. The hope is this will make it easier to review and get approval. The two new patches are functionally identical to the previously posted patch 2. The patch series now consists of three patches. Patch 1, adds a new option to gdb_compile to either generate or not generate the line table information. No change from the prior version. Patch 2, fix the specific GDB issues with reverse stepping over a line with multiple statements in the same line for PowerPC and AArch64. Behavior on X86-64 did not change. Patch 3, fix the behavior of GDB for all architectures when executing the next command in reverse on a line that contains multiple function calls. The series of three patches has been tested on PowerPC, X86 and AArch64 with no regression errors. Please let me know if these patches are acceptable for mainline. Note, Luis Machado did the AArch64 testing. Thanks. Carl