Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1611217ima; Thu, 25 Oct 2018 01:55:34 -0700 (PDT) X-Google-Smtp-Source: AJdET5eVHKS6AOWbvZb560+OiJpiZRPq6FZmZSn7JaY3RsMf6JkXvg6o4biE8UgVKdayCzZcejle X-Received: by 2002:a63:ec4b:: with SMTP id r11-v6mr630292pgj.295.1540457734294; Thu, 25 Oct 2018 01:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540457734; cv=none; d=google.com; s=arc-20160816; b=uBzTtk4/emGdtC/8dOaQ7fw9e5A2tfG+Jz8pdDX+hY4XSI16Wqasjvc4eZwZTlI7Rs HzQltwZbXt+YWcO+xafXfgxYo8rjX4jKTc1J6DLkwIZ8DxaZgO0DCk3UxFRGLjNAqDjM Z0xtfyIaKNxVN2oIq64RaBkwStc1pE16OxcyuUm/z6W4U3+Lsg/eUJs4U4s1LJLFaPOO g1oxl9wf+R0b/ckhQx/cVnmlDPXK/XilR0X9q2SddoAfCUpUl2EX0+kVsrBKJ2sAcwyp 6vdf5ly6XX/R4XzQd40lRDKIH8dG+mNnvGreT5Gf5hICkHN03Al9VOM0pHGRSXz1+btw GbpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:reply-to:references :cc:to:subject:dkim-signature; bh=nIF2sb+ZB2Sp8eRBfZMTDLRirRIR4fxsXjnyleWue5o=; b=NtusFnh6BmeoVb2sfXtV1ZW1AO23WmNd5iTMk8G705qig53ExOwe+kF179fnSMReb9 w88EZbzIf+WL+/hH/Oe2nw//f5GqzPc3sAgcQddb963faRMkWprXgc3ZISZ6grMA/RrK SR/3DEQkQdefp4sKPwzueHrg7me+VgebQhnREtX+gpdohLoueKhVGL+mvBAPLGfcW8PK LuzWRGQqEEhwpfv6mU8QFAL3w72eSpPaJX7xCQk4YvHiN8wrzG9pXHU9SpprMGTKl4M4 3t/V/tI6gU1acPbKCCi7INI/wcqaJjGU0euevaYznJru8UgEU8HsyodRQbG8elyo5L2V bRig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=NFXJHgll; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c191-v6si4869106pga.402.2018.10.25.01.55.18; Thu, 25 Oct 2018 01:55:34 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=NFXJHgll; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726900AbeJYR0W (ORCPT + 99 others); Thu, 25 Oct 2018 13:26:22 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:56236 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726797AbeJYR0W (ORCPT ); Thu, 25 Oct 2018 13:26:22 -0400 Received: from [10.101.221.235] (unknown [185.7.230.216]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 167F6113E; Thu, 25 Oct 2018 10:54:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1540457672; bh=ugtSuDe0ESLND7KrPVeZHBK1yZSqPhbD/1O51xD3Qpw=; h=Subject:To:Cc:References:Reply-To:From:Date:In-Reply-To:From; b=NFXJHgll8jHfYB7weZssbgKjoCswMwBsl9wClXHvD9VLRm842IQyGc5/A8gVetJPJ hCQwU2NWK0ZZi8TUrgPsPWD2eJdfc8FMjwgmyZpzE2PRpg7RrDlv0KEjZT+caHX9zg bqcJIiKT2zjNfcbG05ws0GthNnGpjjaQs4to7FVM= Subject: Re: [PATCH v3] scripts/gdb: fix lx-version To: Du Changbin , jan.kiszka@siemens.com, kbingham@kernel.org Cc: linux-kernel@vger.kernel.org, Peter Griffin , Andrew Morton References: <20181017142442.7818-1-changbin.du@gmail.com> Reply-To: kieran.bingham@ideasonboard.com From: Kieran Bingham Openpgp: preference=signencrypt Autocrypt: addr=kieran.bingham@ideasonboard.com; keydata= xsFNBFYE/WYBEACs1PwjMD9rgCu1hlIiUA1AXR4rv2v+BCLUq//vrX5S5bjzxKAryRf0uHat V/zwz6hiDrZuHUACDB7X8OaQcwhLaVlq6byfoBr25+hbZG7G3+5EUl9cQ7dQEdvNj6V6y/SC rRanWfelwQThCHckbobWiQJfK9n7rYNcPMq9B8e9F020LFH7Kj6YmO95ewJGgLm+idg1Kb3C potzWkXc1xmPzcQ1fvQMOfMwdS+4SNw4rY9f07Xb2K99rjMwZVDgESKIzhsDB5GY465sCsiQ cSAZRxqE49RTBq2+EQsbrQpIc8XiffAB8qexh5/QPzCmR4kJgCGeHIXBtgRj+nIkCJPZvZtf Kr2EAbc6tgg6DkAEHJb+1okosV09+0+TXywYvtEop/WUOWQ+zo+Y/OBd+8Ptgt1pDRyOBzL8 RXa8ZqRf0Mwg75D+dKntZeJHzPRJyrlfQokngAAs4PaFt6UfS+ypMAF37T6CeDArQC41V3ko lPn1yMsVD0p+6i3DPvA/GPIksDC4owjnzVX9kM8Zc5Cx+XoAN0w5Eqo4t6qEVbuettxx55gq 8K8FieAjgjMSxngo/HST8TpFeqI5nVeq0/lqtBRQKumuIqDg+Bkr4L1V/PSB6XgQcOdhtd36 Oe9X9dXB8YSNt7VjOcO7BTmFn/Z8r92mSAfHXpb07YJWJosQOQARAQABzTBLaWVyYW4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nb/Qja8hnYnkUzY1Lc+OtwiGmXTwYsPZjjAaDX35J/RSKAoy5wGo/YFA JxB1gWThL4kOTbsqqXj9GLcyOImkW0lJGGR3o/fV91Zh63S5TKnf2YGGGzxki+ADdxVQAm+Q sbsRB8KNNvVXBOVNwko86rQqF9drZuw= Organization: Ideas on Board Message-ID: <6a1ec497-acd7-cd4d-4541-5960e03d955c@ideasonboard.com> Date: Thu, 25 Oct 2018 09:54:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181017142442.7818-1-changbin.du@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Du, Thank you for the updated patch, On 17/10/2018 15:24, Du Changbin wrote: > For current gdb version (has tested with 7.3 and 8.1), 'lx-version' > only prints one character. > (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 > > Signed-off-by: Du Changbin I'll update the upstream GDB bugzilla [0] regarding this issue - but I think we need a workaround here, and this is it. Fixes: 2d061d999424 ("scripts/gdb: add version command") Reviewed-by: Kieran Bingham And for reference, this already has an early LGTM from Jan as well. [0] https://sourceware.org/bugzilla/show_bug.cgi?id=20077 > --- > 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() -- Regards -- Kieran