Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp729129imm; Wed, 17 Oct 2018 07:26:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV61lBYJegf6b8yrBJkEUg/m76aLkpCcUl1Q9pOMFW06nk4MiB9U/l/hLxT2fN4l/Xk+ZQ69r X-Received: by 2002:a63:5a0d:: with SMTP id o13-v6mr24720891pgb.267.1539786419384; Wed, 17 Oct 2018 07:26:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539786419; cv=none; d=google.com; s=arc-20160816; b=P31m6/TpH6NJA5BaV2HxJt3EPcV/O8O+/VaGzE9Dmf902DDq0IzsTcLK8obtU77sAC Mxw3FPbPeKV5tz99eI7r0Hht8Ffrc9ehqCyobvHOI2kXPeZH/2jg1P4z39MlqWUbCcI7 FmWjPbNMC6EyvbLPSjpDYTkPnOg9CrXPvuSpwN9ZDmAerPLXZ3ux4TpwiA4WvVSKHDmh semo9ta9wFpcs5i/IKS+GragzgWlyveMDHAL+NP6kBzGe1uFj4e+zPUuhx1fztA2ppuN I8UzZ4JTU3gs7yz3yF3J3OC5P1PhDQKUzU6sOJP+GkTRwAziUkPqizshuzyhhxfIpLgp tM6A== 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=2m3tQ2jgp3Y3GTzokyylwNVaTTLXaIK5EVimYQaLVcE=; b=n9XmF/E+46mltDE/RCbkMdH+C3EmggoH36LkXtRbujhZUxfaJI8nP+rYh6x0WcSi+Y 6VAapKzlOayPWfmCQZ4QBjRPajt1f483TEradgMZXzD2rIDRYsU8bu9zTEci9S/W2oo5 5AVrZng2QeNrOCxuY+2VO9rpnlZ8Pmce6e/TT2d8jxA5exwScFKcECXe1oau71V7Heec b9Wl+XiR2uCKuX1wbhqTUON2ZINTll5HFM1pzxdY/9Hje/Ji1PzG/53rRO2eN35GERz7 gCTqmASp8GOMcDxap76wR6rsvLIAPwI0xD4Vj999xUlVVzUw9REgkoLKUeIF/ZkBtGGm Eubw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TY6WQW7u; 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 h1-v6si16866589pgs.493.2018.10.17.07.26.43; Wed, 17 Oct 2018 07:26:59 -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=TY6WQW7u; 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 S1727594AbeJQWUm (ORCPT + 99 others); Wed, 17 Oct 2018 18:20:42 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41255 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbeJQWUm (ORCPT ); Wed, 17 Oct 2018 18:20:42 -0400 Received: by mail-pl1-f195.google.com with SMTP id q17-v6so12780816plr.8 for ; Wed, 17 Oct 2018 07:24:46 -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=2m3tQ2jgp3Y3GTzokyylwNVaTTLXaIK5EVimYQaLVcE=; b=TY6WQW7upw9SIYkjNCTKZwTlxickWxWUNm7rB+eRnBvq+lvPwJ7wl+LPN+KddZ/JUG JGB4q9A5X5bZsLE2yCKGW8NaoYWvaFkA2eLoTHqf86eK8uEJUSPDqtEPN7Y12HPMBcqR PAWP9iSQAR2RFfRMNlGkWIbXz4q3HgaGs+oEaZW+FRDABM3VGzjqdtpgGTJrvBzyfNIW pMSoUW3Jswb6I+iyPLNGCbuNP3F7wSVKNA3X0ertZbQcqbPkjHCYxNBJYxIsgcmF8qiY AEv6oviqqcrjda6P0NhO1Vbn2Cr4n2Mjcj/tHmCZ6Sd6nKEPepoIUX/dcCohuP6nhmDR 200w== 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=2m3tQ2jgp3Y3GTzokyylwNVaTTLXaIK5EVimYQaLVcE=; b=FAuDFzuo1WVNHpo6i6ygAjSiqle4odS0zcG8g93CoFydfoZcGMHVzELSaAKs6ua1Gr y3P/QRSw8IOReL5fUZt9INKC15lQohSzjRwgnfiT4JLL7RR5HIwfDwhxa1zpfyNWpD9U tq8DdM7IDjRJqIPlHZebnBMOFe1KiPFrgaHHVPqywjv7yTNO2xplAJL+szedUGc3dsuj 8xGcyjH4a5IIEYF9i70nwsebr87MAnDOLadl++b6qrFazs8pSym0KBSYUXHWEm07AtYM bhle/9eO2jbTBp22e0japcJCDTjzzTb5CYiaiUt0mQKmbw3gAz1+yK2FDAlVl+j6nuXV UmrA== X-Gm-Message-State: ABuFfohgAvrSy4hKC8GNoO0s1PLa+RaGa41skIOGOL7aF+UOImuS1YAU yUme3mRAyRPgdWXwduUGgMo= X-Received: by 2002:a17:902:9:: with SMTP id 9-v6mr26115438pla.293.1539786286440; Wed, 17 Oct 2018 07:24:46 -0700 (PDT) Received: from vultr.guest ([2001:19f0:6001:4ff6:5400:1ff:feb7:a195]) by smtp.gmail.com with ESMTPSA id x23-v6sm20440442pfh.56.2018.10.17.07.24.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 07:24:45 -0700 (PDT) From: Du Changbin To: jan.kiszka@siemens.com, kbingham@kernel.org Cc: linux-kernel@vger.kernel.org, Du Changbin Subject: [PATCH v3] scripts/gdb: fix lx-version Date: Wed, 17 Oct 2018 14:24:42 +0000 Message-Id: <20181017142442.7818-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 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 --- 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