Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp129660imm; Tue, 16 Oct 2018 19:38:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60aYR8L6onmtGhS2ODRgabJx48z1jVBh9SCdEjApeTRMBdiThFfLqckkGC7+CGtYb0YGEc2 X-Received: by 2002:a17:902:8502:: with SMTP id bj2-v6mr23784053plb.295.1539743927411; Tue, 16 Oct 2018 19:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539743927; cv=none; d=google.com; s=arc-20160816; b=p+qTDbve+7zLzuLqS+93Hr9F+9u2BGXcz/8j4Nr2wu3ToeanvqXhYkCBjGoSWrhVRS QFrAKFL6qCyfzEjwo3UsMhBEDAYcg+SE28sOTxDAbSCYmzTy4YIaAINn+PZ7S78FE6du CHgd71nB5MxVfZSYautGNp1jFot2dFtG1hdU6WeQMfvoDWTUc2pHvhM6MYbo2q+Zc18p QDO0XF2dfitofS6/WglYc6uRd6sad4kMQv/Z+17ztyNzm689VWozbMMAfos9CefTU7Rr VAy9S21KXyXCGNc+yCKGcDxSOtxIMHVjDvBxcLTYcq+zUM+R+RDiTQgbyRnQ6a7c/mYg YoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=Zo+uTcaLv2tMz+5Q+UWNd2ScdrGHG0OABhpM3/RdxD4=; b=Bek8ASx+SjtyaAJomniqudzy9qHXPOlxRfASGIBmK2F+o/Z23fOTPSmER3z1ia0Azn Q8TZUHDEITs1wU0hHZwVKFaKQs+QaEw482XMx+4TDDToKM2n69MHdRVlp1iqyYrKRl6E YjVQ4y7JPytpfZDEAiwe4F+ku9uefNykmElWXhuchAh6324T9G3DTYdCitH5D99dETK6 z7kCcpxuoJI7ZAyHAa6shoenyT20BautCp+M8e8JLfrCeICNZcqL0ZtMfzzcZUAWIPNW M1+qmQ7ryyAT2LTG6jn8vdlFTbWpbBSCI7zi/ZMlOBq8371j71e6AzKY50mGebwOv0nk fweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dALIpecy; 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 j16-v6si15443890pgg.350.2018.10.16.19.38.31; Tue, 16 Oct 2018 19:38:47 -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=dALIpecy; 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 S1727280AbeJQKaU (ORCPT + 99 others); Wed, 17 Oct 2018 06:30:20 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45635 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbeJQKaU (ORCPT ); Wed, 17 Oct 2018 06:30:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id t70-v6so11757287pgd.12 for ; Tue, 16 Oct 2018 19:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Zo+uTcaLv2tMz+5Q+UWNd2ScdrGHG0OABhpM3/RdxD4=; b=dALIpecy0DnNzOi9CGPcUIzrk4j6qDDwBagmkAm/beBkfeL99n+s5v2ZrQk3SZlJvM svXtXUf87iZOofjWmmWiuRFQM4+nvOb1A5b66EXBWgbB3W1rru1hCFq2WcMbt6L/Imcb RPCNlZwiUoz77D+9tX2q8qR0aqkijWED+iqOXMo1Eh21THbhO3IGrbgKEkcLofrlirwg FDLLRYoi43ejjIpd9sWcPgadXCq2roZnnrrhPeB2qgeVNzsnwopPW83o72hmNt5eCXzq 43Vl+2vt5rbHB2RNseD91GkmEfSuhy87gtyN9Ukp1NgcB22cOvei+MzjqGOAg+7x6i3a I21g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Zo+uTcaLv2tMz+5Q+UWNd2ScdrGHG0OABhpM3/RdxD4=; b=OHyAwgrRRmd+p8AxSlxBtJbriDAdtz5NnXZEMbQtPk4k2zQisGbX2FB0jp7x2UEXmJ /74mZGJt8c0YdEs6VLxrLjYLhXgSN73EpwJPwum1lHaoTKIGjkhcGNFmEGawyIAViI1c TIH48uAJn+Rvjhqd8IflvXQnXx/IoXYbqbvLisqQfnyLvhorP+M4AUItrAIlYyt5+/f4 /6i7uPsdGk3+a0Ku6Ot26Txusm87V04KnUtyVN/iIWNpL7g5hiQgdwbGq/FQTs7zXdG6 b29vGW6XEYmC8stIOzfpb1nH/+0iJTzCbSTEZf4wXdg7oOTDY6f21S+/LtJ90DqeA6fE DyOA== X-Gm-Message-State: ABuFfohjUfy83B+ZxqUzj4Px0m5pMnKwLZWKXG5GBtrCuIv0Rgi7rLRX ccgH0xNx3Rtzxug1yT92+ao= X-Received: by 2002:a62:204a:: with SMTP id g71-v6mr24651840pfg.70.1539743816091; Tue, 16 Oct 2018 19:36:56 -0700 (PDT) Received: from vultr.guest ([2001:19f0:6001:4ff6:5400:1ff:feb7:a195]) by smtp.gmail.com with ESMTPSA id a14-v6sm18460079pgi.75.2018.10.16.19.36.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 19:36:55 -0700 (PDT) From: Du Changbin To: jan.kiszka@siemens.com, kbingham@kernel.org Cc: linux-kernel@vger.kernel.org, Du Changbin Subject: [PATCH] scripts/gdb: fix lx-version for gdb 7.3- Date: Wed, 17 Oct 2018 02:36:52 +0000 Message-Id: <20181017023652.6867-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For gdb version less than 7.3, lx-version only 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 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() -- 2.17.1