From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id BzCnJD8Bm2R6mA8AWB0awg (envelope-from ) for ; Tue, 27 Jun 2023 11:33:19 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=f1DYkCN8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 860E71E0BB; Tue, 27 Jun 2023 11:33:19 -0400 (EDT) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 746091E0AC for ; Tue, 27 Jun 2023 11:33:17 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CEB813858412 for ; Tue, 27 Jun 2023 15:33:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEB813858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687879996; bh=oVJvBIbFMbVvZttiSib1wdT2JmoHOfqMZ8kbCHEzyuw=; h=Date:Subject:To:References:Cc:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=f1DYkCN8mbmSuj4el5KUjwRzmg9c8+tv+lbT8ViMCqvdhH8G4RBpVi9HZo6UUJbf6 a1s+Wc7JhCqJcp+oYwW3JAi6xIQtTMr7mPRB+WmIxbnEV3fff/GzVm9jRgac2xKg35 AhW6F2CiFRxV1szcFoOXNpFl1HzvI6omRMQbxooA= Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 3AA493858D28 for ; Tue, 27 Jun 2023 15:32:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3AA493858D28 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b699a2fe86so47575881fa.3 for ; Tue, 27 Jun 2023 08:32:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687879976; x=1690471976; h=content-transfer-encoding:in-reply-to:cc:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oVJvBIbFMbVvZttiSib1wdT2JmoHOfqMZ8kbCHEzyuw=; b=RxeftSv0D3lvg6KcARG8g9I9w5Mo0l1267TGp/+qc1ZyM1rKT8z5cBszrIA7D8SrpI Zl5gLLbYYTAx1tstqAsmXd/d/XkYtu/1EGdemFbdgQuzrq8X/A2N/YgKdzhXV0O4g9WZ swo3ZF3QyC8Zwk5RCUfJujhIohXmY/6RrXCbjuIAuev6wAL262gTwegKTgpSc+gHOsMF j3hOYwtGvsNKvMdwF3Hsu1rUK5xaUEdrfJfpLrFn/hYey+evddIXIL+Uu1iXa0+aRzhn XaFRNJtiz8+s6rHJ8atFpUtFd0t0xPFp9d97blqkb1+cFT4p/It6P2TpPVdFivyrTqh/ mKUA== X-Gm-Message-State: AC+VfDwSsZQsF5D5MzALzhNxINzyy9Gdo/FL5AsIVfBGGAQHSYSpG67X 2dbQ6RMHiX6kHA0v0aviDfSCL+h/kCA= X-Google-Smtp-Source: ACHHUZ7NZUA6g5/uVuV0Q3nu64kHteS/blgToFeznPmPD3GIas8UC41A/biZYyyVVwVyDLxAdUrGrA== X-Received: by 2002:a2e:944e:0:b0:2b2:1d7a:bd3d with SMTP id o14-20020a2e944e000000b002b21d7abd3dmr23174959ljh.9.1687879975363; Tue, 27 Jun 2023 08:32:55 -0700 (PDT) Received: from [192.168.1.20] (78-73-77-63-no2450.tbcn.telia.com. [78.73.77.63]) by smtp.gmail.com with ESMTPSA id r22-20020a2e80d6000000b002b69e746077sm1286563ljg.105.2023.06.27.08.32.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jun 2023 08:32:54 -0700 (PDT) Message-ID: <55387162-b26d-01b8-105c-11bf432a1f3c@gmail.com> Date: Tue, 27 Jun 2023 17:32:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1] gdb/DAP Fix disassemble bug Content-Language: en-US To: Tom Tromey References: <20230626161654.207687-1-simon.farre.cx@gmail.com> <87cz1ixecl.fsf@tromey.com> <2c7beaa5-a45c-b97a-a4d8-44a092a00471@gmail.com> Cc: gdb-patches@sourceware.org In-Reply-To: <2c7beaa5-a45c-b97a-a4d8-44a092a00471@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Farre via Gdb-patches Reply-To: Simon Farre Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" I've got a working "backwards disassemble" patch, coming soon. On 6/27/23 00:11, Simon Farre wrote: > Also, I don't know what design GDB has, but this kind of information > is probably knowable by utilizing DWARF. Just guessing here, but it > seems like if one were to use the line number program in dwarf, being > able to "disassemble backwards" should be fairly easy. That kind of > would have to require that the current design is suitable for that and > the little I've looked at it I don't think this is the case, > unfortunately. I'll update the patch by just returning "invalid > values" prior to the "current pc".