From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MTaTAQ2bKmet+yYAWB0awg (envelope-from ) for ; Tue, 05 Nov 2024 17:24:13 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=viric.name header.i=@viric.name header.a=rsa-sha256 header.s=dkim1 header.b=mxUABlGR; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E5DC61E5F3; Tue, 5 Nov 2024 17:24:12 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 BEC921E0C0 for ; Tue, 5 Nov 2024 17:24:09 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0244C3858C48 for ; Tue, 5 Nov 2024 22:24:09 +0000 (GMT) Received: from mail.viric.name (mail.viric.name [37.18.133.75]) by sourceware.org (Postfix) with ESMTPS id 89F603858D20 for ; Tue, 5 Nov 2024 22:23:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 89F603858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=viric.name Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=viric.name ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 89F603858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=37.18.133.75 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730845432; cv=none; b=T0RGlQZ1xLLLfaRX4gZwW75Q/GUJLUgt0P8cPq45Dhab7ReLxqzR73xUD5EzWaxXDdBfTZgj1vpPpCEzGodwB66xeuxgZ7hw61K55mw0DN/x6ZA5rz7DysRWip6jhL11u8bvsSd7AQZKjrLwRkfE8l6Vy6CMhNZcR3vYGMuaz1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730845432; c=relaxed/simple; bh=r2XQzRv2xqZQ1u7VU723sAxdSKtDYim2yuvCufeyvnc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=KQ2Ez1DJOUw6oyyVlJDBQVbdTFxM+Ho2I5UlKm0Bufe6Ku5opIMl/WGLc1Xvsg6slE85wVxnCaO9wiwQ0vTXuqN+XpixCwOaA29Ckmtkmoz/DYAULoe+excA+znZbEeAZWEibFFp0o9X+G7vomTkLK8Z/cg5tWAH24VFZ2drdVM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail.viric.name (Postfix, from userid 1000) id 96FB413CB8D6; Tue, 05 Nov 2024 23:23:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=viric.name; s=dkim1; t=1730845429; bh=r2XQzRv2xqZQ1u7VU723sAxdSKtDYim2yuvCufeyvnc=; h=Date:From:To:Subject; b=mxUABlGRKpTCk66J+nQNC0eYsegqQBqH9omB9eUPb5y81KnBtNvWF6wiiLvtPcHrA ZfiovJw6a2PaJhzsQBPbR6RCLqtByAMiDiIpgsKmG1PUbBvADPFMRSjVy97Wm7oED1 h9fVFzaDjnjvEwWCiTX6C7wE9QQTuR7GIhI+w0Ls= Date: Tue, 5 Nov 2024 23:23:49 +0100 From: =?utf-8?B?TGx1w61z?= Batlle i Rossell To: gdb-patches@sourceware.org Subject: [PATCH] Fix 'edit' command to go to right line Message-ID: X-Accept-Language: ca, es, eo, ru, en, jbo, tokipona MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="45oyhkvlxviaao4m" Content-Disposition: inline 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 --45oyhkvlxviaao4m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I attach this patch I used more than 20 years ago. I thought I had sent it in these years but apparently not. --45oyhkvlxviaao4m Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-edit-command-to-go-to-right-line.patch" >From fc0f3f1200f18c86a6d90185f02b1f5ce0c0235b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Tue, 5 Nov 2024 23:18:30 +0100 Subject: [PATCH] Fix 'edit' command to go to right line The cursor was placed at a line off by a bunch of lines. --- gdb/cli/cli-cmds.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 65ac7d6e7fb..54bef435e86 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -973,7 +973,6 @@ edit_command (const char *arg, int from_tty) { if (sal.symtab == 0) error (_("No default source file yet.")); - sal.line += get_lines_to_list () / 2; } else { -- 2.44.1 --45oyhkvlxviaao4m--