Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1043260pxu; Thu, 17 Dec 2020 00:13:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2E2b9By/M64ZhBrK6O2VzqSihDfqvwWThuuM2J3UtgR1S1XyYdyUoGAQnAz0tRQQ1vJQc X-Received: by 2002:a50:dacd:: with SMTP id s13mr1347225edj.173.1608192802907; Thu, 17 Dec 2020 00:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608192802; cv=none; d=google.com; s=arc-20160816; b=sw3w6NSYaSW5h0nW7V0NKU5ZQfJ51/S9M+ObvC8+4oJxDSvrfAtXGxo8NTrhi6PDy3 NXMA/3KcoutCo38xcHp6ECxM0R5tVHCOgE0iH3ZSE8patssrAe6J0xpDZntOo6k/mtbI wlKIOSgI1WD31YWWrgv4rFCfth1JdC21dIMT75xDp0OxjGvMWyCxjY4SBDJT1/psRBlf 89+P13fzqPazTW5F63GxT+L0qi6crwiKxiSEUxq+bRTO3LGHiktIf4lTK4wNbk8jHvBn e91vKD8IvChsiBdlN5xDnH6Nm946FUT9BNJ28sr8rIKAIcZ6bqstn0iVPjaI99zwUELU yIFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=EEq8cj5Dx+MyFVfYxKSPH4TGidEACkk4dPoPQmrB02Y=; b=mJF1ubePVR8z+uEky4CyhTDOJ8AIkfl1M2Dg4Ml5FVRZOrQk4C0aQ1wrcAd7B0vIcb m0Sb0wtIUK7wyOXDD9FbwXGpDc9LqVWlmjE7PtlSgsFaVrv2rEt0t/nDh3ns51d9bbRj y+OjBcqcbLVh90ps6c7Cc3Mjqp2uV98HmhbLuTErzeg/3p0MaciouqSIbRAOWZY+C5xD Fd3B/uKqXeqOgi5meec9og8x5Riqhb7rHiN8zOUgsyM5wiIInZN0wHh3IFpeHFADRFKp ho9V0cc0z26XopLM7DEgPQGHZ1+rsSh8/xTnD3beaAZYdhbL0OJpUAzu/kNQJDMN6MSY XIyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si2164626ejp.536.2020.12.17.00.13.00; Thu, 17 Dec 2020 00:13:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgLQILn (ORCPT + 99 others); Thu, 17 Dec 2020 03:11:43 -0500 Received: from gecko.sbs.de ([194.138.37.40]:35638 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbgLQILn (ORCPT ); Thu, 17 Dec 2020 03:11:43 -0500 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 0BH8Ars6018370 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 17 Dec 2020 09:10:53 +0100 Received: from [167.87.38.225] ([167.87.38.225]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 0BH8AqKj019925; Thu, 17 Dec 2020 09:10:53 +0100 Subject: Re: [PATCH] gdb: correct sys.path insertion To: Johannes Berg , linux-kernel@vger.kernel.org Cc: Kieran Bingham , Johannes Berg References: <20201216143646.82aa53af4af8.I04934c69a9f3abac5ba6d542f823898357fd0e11@changeid> From: Jan Kiszka Message-ID: Date: Thu, 17 Dec 2020 09:10:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201216143646.82aa53af4af8.I04934c69a9f3abac5ba6d542f823898357fd0e11@changeid> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16.12.20 14:36, Johannes Berg wrote: > From: Johannes Berg > > Perhaps something got moved around at some point, but the > current path that gets inserted has "/scripts/gdb" twice, > since the script is located in scripts/gdb/ already. Fix > the path. > > Signed-off-by: Johannes Berg > --- > scripts/gdb/vmlinux-gdb.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/gdb/vmlinux-gdb.py b/scripts/gdb/vmlinux-gdb.py > index 4136dc2c59df..476da5b6a7ca 100644 > --- a/scripts/gdb/vmlinux-gdb.py > +++ b/scripts/gdb/vmlinux-gdb.py > @@ -13,7 +13,7 @@ > > import os > > -sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb") > +sys.path.insert(0, os.path.dirname(__file__)) > > try: > gdb.parse_and_eval("0") > How did you test that, which setup? I just ran "gdb /build/vmlinux", and "python print(sys.path)" didn't expose this duplication. So your change would actually break that common case. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux