From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id fDF8Bolyl2fiKxwAWB0awg (envelope-from ) for ; Mon, 27 Jan 2025 06:48:25 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VXBbT/Sv; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 08F541E105; Mon, 27 Jan 2025 06:48:25 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A06DB1E08E for ; Mon, 27 Jan 2025 06:48:24 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 46F3C3858294 for ; Mon, 27 Jan 2025 11:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46F3C3858294 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=VXBbT/Sv Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 15CE93858431 for ; Mon, 27 Jan 2025 11:47:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15CE93858431 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 15CE93858431 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737978471; cv=none; b=I36PdPe4C83JOb4EG9Y/x3D8sKdP/uI8NiNmZvFjENZBEAfnHPUtx7ob+BlzFQHj274dD4lfKIGFRsJvRhS2crZQ+MmxAW1haATuKkIHQEtdcXOhhKIkOzK5xob9b4Bf++1Qd+GNmqkTbadJnw3FavbgtsSuG+rDdf5hD1/Klm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1737978471; c=relaxed/simple; bh=jLoY58eTAeL2qwWeyVZLMFZtOsbUofaafiy/4sYxFTs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=uxaZ8WvbAGQzkrTGgtyT2l4gQixDn22u3FM2Mm3cdQsHN1PW+YPBNYiW8p+wd0JoL0qbV0HD0iEUOOYCcUgA51dsXsxIMx7ZnlzjjHzn5LFvlOiLla5KYnE72+EkYuubDLv1vufvX7n6JPzbm/jxcb/oSDt4JaxSNKLTQTbWZQI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15CE93858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1737978470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nqeF+kvU9gl8817ryzIdRT+lnmqKJ4uDY8UUVCnjG8M=; b=VXBbT/SvQBBdefUI5Cnoln3g5F171JyUVBEwGZZkqyrH3UPUvRxny3AUQcuhad4XHku+g1 fKn6hxhXYrX8GHILmOviJIW2nroFabJRNQYtNf+xq8bgiTqGkBHM8A6cZqNA9WkVUEfFyM dOb975K0raMZDrXjPPrN3ILpuxrLdp8= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-jUSWnxZHOKeY5z9Z1s9PcQ-1; Mon, 27 Jan 2025 06:47:49 -0500 X-MC-Unique: jUSWnxZHOKeY5z9Z1s9PcQ-1 X-Mimecast-MFC-AGG-ID: jUSWnxZHOKeY5z9Z1s9PcQ Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4361d4e8359so30658025e9.3 for ; Mon, 27 Jan 2025 03:47:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737978468; x=1738583268; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nqeF+kvU9gl8817ryzIdRT+lnmqKJ4uDY8UUVCnjG8M=; b=WsSPYaoFC6CtAhSxdhJZ0wWPkP9dCPA6igZ3XXbuiEx6v/cyhIxlo83PnIHnT+kWe7 WP3G92aogcGzXyHnXsEDWZI3RWPMK5I34Y3YnZsx3DOOUfIeHkdkIWgTFrh7TS32PyEF wzhV3sfUfQfcxWDiFOc3g7HLAHg7SJiCbm4xUOTeSElgdZq1WkjBpi0HWrfL11gZRAVL pM2gHl6WKfqb9yC4a5M0II/At+noeROmXPC3ISEcBh+pNd2gsbpVcxuhqq9kA1wlTedO 001xrRuYd0nfFYgV0Ofej3YAinjWMJrD6pAwQWNHsnIWraSg4r28YIXIPywpzYilogT1 p5yw== X-Gm-Message-State: AOJu0YwfpJuDwqIC4JK/DcmwnMub8C8dcQMDjAr+KjfU9wNKuKzC2JxD Dav3Q9q76f8K/4Qq1EI9rtHD8VYll18llseTwDx/MjoYcapBsanxPkWE0fnXgglyEJUM+HKZgEY sFlgL0K5w+zV0YH0DB8SNnz42oMHkETjyEvB8OXYqc77l21XIqjO3tWopHv8qqds+cYA5t4yRyu wia6Zr7cHQZHiv7sNSbb3nMr3xztH6Jww14SnyfpOwkJI= X-Gm-Gg: ASbGncuF/+vJ307COLYNTKPwmwjMF/Qatlp5x9oMp7gzgYMObExVbCUPkf3aqp6lz/x 9ZDva6DTTHEqhyw1/Oequ3/X0U29levS4wDQOpgICjDIOln5JLPP2GMFg/DPZMJTbQ8eAgATeGs nahixm1qDgD59Ens5FTTUwMNW8tZTTYH+LpZRMEJs02uA4WMdEvrT9lVMR2xXu1ZOTdztOa938N 2NmxVJ9AVCMhTyIMi2XQwRicVFGdo66FVDXm+tOzHd4rsydXCKjhiBaUENDQNhd6JV2mtgIDXgR UgvJXKYpHms9SdZ4lUQ+pNeyzJ1o5Q== X-Received: by 2002:a05:600c:1c9d:b0:434:ffd7:6fd2 with SMTP id 5b1f17b1804b1-438913ca1ccmr361836905e9.7.1737978468454; Mon, 27 Jan 2025 03:47:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8JnrUFaLM+1+aLt+0RiR4dMYA0L4/SwApRoHAUIV8KqlM9fiiT+E3avAIB1D3XuTrQNSSiQ== X-Received: by 2002:a05:600c:1c9d:b0:434:ffd7:6fd2 with SMTP id 5b1f17b1804b1-438913ca1ccmr361836695e9.7.1737978468056; Mon, 27 Jan 2025 03:47:48 -0800 (PST) Received: from localhost (44.226.159.143.dyn.plus.net. [143.159.226.44]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438bd4c75c0sm128611775e9.31.2025.01.27.03.47.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 03:47:47 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH] gdb/testsuite: add comments to line table from DWARF assembler Date: Mon, 27 Jan 2025 11:47:45 +0000 Message-ID: X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: jJpX-ORCFOZCyk9cdYlNDxaakLnT3gzJ07GwRqx51Hk_1737978469 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Add comments to the assembler generated by the DWARF assembler that builds the line table. I found these comments useful when debugging issues with the line table parsing. This patch should make no difference to what is being tested. The test binaries should be unchanged after this commit. --- gdb/testsuite/lib/dwarf.exp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index f6348972968..bcf3d73bff2 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -2648,25 +2648,25 @@ namespace eval Dwarf { set _line_address_update 0 variable _line_program_terminated set _line_program_terminated 0 - _op .byte 1 + _op .byte 1 DW_LNS_copy } proc DW_LNS_negate_stmt {} { variable _line_program_terminated set _line_program_terminated 0 - _op .byte 6 + _op .byte 6 DW_LNS_negate_stmt } proc DW_LNS_set_prologue_end {} { variable _line_program_terminated set _line_program_terminated 0 - _op .byte 0x0a + _op .byte 0x0a DW_LNS_set_prologue_end } proc DW_LNS_set_epilogue_begin {} { variable _line_program_terminated set _line_program_terminated 0 - _op .byte 0x0b + _op .byte 0x0b DW_LNS_set_epilogue_begin } proc DW_LNS_advance_pc {offset} { @@ -2674,7 +2674,7 @@ namespace eval Dwarf { set _line_program_terminated 0 variable _line_address_update set _line_address_update 1 - _op .byte 2 + _op .byte 2 DW_LNS_advance_pc _op .uleb128 ${offset} } @@ -2682,7 +2682,7 @@ namespace eval Dwarf { variable _line_program_terminated set _line_program_terminated 0 variable _line - _op .byte 3 + _op .byte 3 DW_LNS_advance_line _op .sleb128 ${offset} set _line [expr $_line + $offset] } @@ -2705,7 +2705,7 @@ namespace eval Dwarf { proc DW_LNS_set_file {num} { variable _line_program_terminated set _line_program_terminated 0 - _op .byte 4 + _op .byte 4 DW_LNS_set_file _op .sleb128 ${num} } base-commit: c779771dfe9e4a35b7ba31d1a906dc8273707392 -- 2.47.1