Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp678535imm; Wed, 17 Oct 2018 06:42:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV617uPJ7jTM2aVCylBZLDzGU+gOscUlJuJr6b1/0b5QLJTY5LNVw+xsqDKFI0z9b4mlFp36W X-Received: by 2002:a63:2903:: with SMTP id p3-v6mr24708866pgp.188.1539783763964; Wed, 17 Oct 2018 06:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539783763; cv=none; d=google.com; s=arc-20160816; b=ixGFRwT8CRC3h1NarPRoRgE7L3z8NKAW4Hdp8x3ygJ2tpXQEH5uT3/EM4fbiMWoReS k7Knl4Tn8G5p1x6h2sJdtYAPdIPt1fSqPUqUh8+vRAjg+PEmhkTV3hO0yT6axMzotPYc 6lPKTPpIfn03JF+Zsfj96cKL1RzZ8beNPZCBdXl90x6qlEr8MmIKvf+3BUKLVft5i5bf DqhRjvY8FzEVwquj8AUzZavUvelk0ZF6G1haiT4dWiLCJB1aUlP8FmBACK3e6gXAnly3 6e/1TnQwh7vap+8C1QTGHwygXoMwsZaBQJ6I9Np5b/xl+cI3BreaeMTQK4nNL0GlkhFz Yzdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Ixx4Ybmjxu91RY2LQlr7ikt9bJh+H2INS/VFi5gpdt0=; b=ZUnq+xcmK2VX+M0VOYbL0xJAg2+UzcjMRE9+4er6HfKFeblI2Xv1fr1M2Dei+yWVW8 KkLO6xx108rLX77fQI8psDn3nmCT+3mdOKL0QdGwfxEaoRSnRgGIjt3aIfNTeGpQ5pyZ 4IxweHi76V9nQAY7T/xgI8JvoNv+Dc01hiyaBzWez7TQmnulV2l/D3a1hJ21zIMba3sP aKG8YPMGcc88ClrJJfPWJJ6OvD2lfKs6mUC5hM8GylsEytvuTSMdd11CtraND5I1iTU2 PFPeRYg2G3d3NUdrigFcouma+yr8/eGxoK+eEMf4wsgKTA/8kxjtPHi+UpUWFZZQj+qs xboQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fd7ze2hh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2-v6si17448205pgj.111.2018.10.17.06.42.28; Wed, 17 Oct 2018 06:42:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fd7ze2hh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727297AbeJQVft (ORCPT + 99 others); Wed, 17 Oct 2018 17:35:49 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45964 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbeJQVft (ORCPT ); Wed, 17 Oct 2018 17:35:49 -0400 Received: by mail-pf1-f193.google.com with SMTP id u12-v6so13203780pfn.12 for ; Wed, 17 Oct 2018 06:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ixx4Ybmjxu91RY2LQlr7ikt9bJh+H2INS/VFi5gpdt0=; b=Fd7ze2hhu4vkQt7tG5VVBtDxtAOrNS+MlsVd9qtezb9aBb5e+iiNJ7WjTAx5XjOz86 9cyz7DbirTzqvgEzYR2RxShoocnWFLRLNHNzmSdri43fbIDOTySS7VKnPtgBxusU6+ZI 1d2vH43dUE0a4D0xeP2O1iwfi/jUd80+FQj6f4SXtOvEOdx6lNQvkX9pjuXeEW8g8EIE H73QgCwJRIaU7YsDx32c5qFXmvpvWc/w+7WhGLUYTutJb/fWA11Qe4LlbWjwvL6wV3Ch VGICmJw/+qk/KVgz0l5rhD2iPOBnmhG3zTPQi6ouJlcpSpluZaJhNvB7AyAVr/bEEoZr Ck/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ixx4Ybmjxu91RY2LQlr7ikt9bJh+H2INS/VFi5gpdt0=; b=LQ5K8Kq9RM9Y16UNByhxwB/JBWBu8fVPCkTL/WuRPwcL2bUqpofnpx7sLnSmUFHABo Y0fX5lcy6C85kNMLjOC2FogMlqTgCZuHxaDcEAcKAAjohjOq638V8BGWqND0Knas3Rxn 3IQ218qT3/cyaYHIKXggkpXRt43K4KNRtZlQitvIFzFkGjId3OXyA1pB4SSo/FdODkgA 9/WHA7fhSBNvIQECti1z3dA2RpuXPy6Xp6KJGQGWQEmPL9fMRphukIPnz6DqerTmQUEK FP/vrd9YBESTlUuG1vaoWL238Go9Fbj5U9G8O5/KJ4IEVkNcR2OSTi2P/xgvSs39zzI3 DzhA== X-Gm-Message-State: ABuFfoiiFKB1zp/haj0njTmF8jNXnNTkMya03LxadBdnbFlRy41USwo8 VWBt8Dbmt8gWGuk8dzoA+3nwTasQmhc0EGuzlpdRQqoBgOM= X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr26740404pfk.184.1539783604001; Wed, 17 Oct 2018 06:40:04 -0700 (PDT) MIME-Version: 1.0 References: <20181017023652.6867-1-changbin.du@gmail.com> <62b6aff8-8ca2-7d6c-d810-64d10a25f2d4@siemens.com> In-Reply-To: <62b6aff8-8ca2-7d6c-d810-64d10a25f2d4@siemens.com> From: Changbin Du Date: Wed, 17 Oct 2018 21:39:52 +0800 Message-ID: Subject: Re: [PATCH] scripts/gdb: fix lx-version for gdb 7.3- To: "J. Kiszka" Cc: Du Changbin , kbingham@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 08:56:44AM +0200, Jan Kiszka wrote: > On 17.10.18 04:36, Du Changbin wrote: > > For gdb version less than 7.3, lx-version only one character. > > ^^^ prints? > I will update it, thanks! > > (gdb) lx-version > > L(gdb) > > > > This can be fixed by casting 'linux_banner' as (char *). > > (gdb) lx-version > > Linux version 4.19.0-rc1+ (changbin@acer) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #21 SMP Sat Sep 1 21:43:30 CST 2018 > > > > gdb 7.4 seems to be no such issue. > > > > Signed-off-by: Du Changbin > > --- > > scripts/gdb/linux/proc.py | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/scripts/gdb/linux/proc.py b/scripts/gdb/linux/proc.py > > index 086d27223c0c..0aebd7565b03 100644 > > --- a/scripts/gdb/linux/proc.py > > +++ b/scripts/gdb/linux/proc.py > > @@ -41,7 +41,7 @@ class LxVersion(gdb.Command): > > def invoke(self, arg, from_tty): > > # linux_banner should contain a newline > > - gdb.write(gdb.parse_and_eval("linux_banner").string()) > > + gdb.write(gdb.parse_and_eval("(char *)linux_banner").string()) > > LxVersion() > > > > Looks good to me otherwise. > > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux -- Thanks, Du Changbin