Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp384493pjb; Wed, 22 Jul 2020 02:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxppqWnrqj3CXHZLoRyMJCu8vTUx07r0CgCCz2xpQqu4oCNfDnTTcSzKOCTTqqI6o1CJRo X-Received: by 2002:a05:6402:1803:: with SMTP id g3mr28609756edy.377.1595409803806; Wed, 22 Jul 2020 02:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595409803; cv=none; d=google.com; s=arc-20160816; b=iA3Th0ty8/w59CMV5gcIPmc4/cYwNBi1vMgx6QaCDHOcDFMpu5lfU/I0Cq+fDQBOFO VXCMzrtFSTNrjM8QBH1iutL7sFwMLwWOgG5+zLLgWkhgM0kHsnEt9veqHujvdm/zvRAn I6RTHrCuqgU4TUq5Vts3lKtlQBhoL+2HE1EtCDLzvLJVQ/W34Szs9cgT9OjuhCZz9/Wj E8zccV6iXo1CMShCrQyf0yo8nbLDOL5d58IEiNX3OD4lWQMv8HYm8JgES1nCMMXYQ24z 5rktvWbfbXNanHHl+sIQlz8FN7nlMjlO7e9XVRu81CZrJvPgtqxedz3MdEjE0hdZyjTz rrzw== 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:from:references:cc:to:subject; bh=onpN1DqXggza6bSTtHIyJSSgIBSPmuW7e23GTRTWEXA=; b=qdWAQjrOm22mpp93L8pTb4PxR421wsNZUoVgU8B+3HesxYQqHv66Nw2V7EkrFLr1/S ssikZXxP1C2nbjmeCVw/tc1SlBPfT+IoDoE05YLij4Za6ygSpS6IDCmkljQnO+S7MX5s 3mHOAE1PpCy3xjZ+X1lBuHD1BOW43956X/Kk5UztBaMZOFvNmEZAa3ZQOS5zBJ4+X6uN zRJ2K0ExkII/tS9Hb0V63KVWiZUSAPdNOtZUP29z+25JTlqDq4qEJiVCnW6DaP5ls5F1 qsl62iLcuca8l3pM4lPBstt8qCtuRM5lof1rTLKDrM+7fXO2UDvxfIjWqJfMDoqRennI isUw== 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 x3si6129612ejw.251.2020.07.22.02.23.01; Wed, 22 Jul 2020 02:23:23 -0700 (PDT) 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 S1731370AbgGVJTv (ORCPT + 99 others); Wed, 22 Jul 2020 05:19:51 -0400 Received: from david.siemens.de ([192.35.17.14]:58714 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbgGVJTu (ORCPT ); Wed, 22 Jul 2020 05:19:50 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id 06M9JhuR029038 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Jul 2020 11:19:43 +0200 Received: from [167.87.24.251] ([167.87.24.251]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 06M9JgCb000681; Wed, 22 Jul 2020 11:19:43 +0200 Subject: Re: scripts/gdb: received an error when invoking lx-symbols To: Stefano Garzarella , Kieran Bingham Cc: linux-kernel@vger.kernel.org References: <20200722091342.c3iss32caiuuizja@steredhat> From: Jan Kiszka Message-ID: <04728663-acde-bfb7-84dc-f97d628bc739@siemens.com> Date: Wed, 22 Jul 2020 11:19:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200722091342.c3iss32caiuuizja@steredhat> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.07.20 11:13, Stefano Garzarella wrote: > Hi Jan, Kieran, > with the last Linux 5.8-rc6 I have some problems with gdb scripts. > Everything is fine with Linux 5.7. > > When I call lx-symbols, I received this error while loading modules > symbols: > > (gdb) set python print-stack full > (gdb) target remote :1234 > Remote debugging using :1234 > arch_atomic_read (v=) at ../arch/x86/kernel/process.c:687 > 687 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id()); > (gdb) lx-symbols > loading vmlinux > scanning for modules in /home/stefano/repos/linux_vsock/build-tiny-config > loading @0xffffffffc0169000: /home/stefano/repos/linux_vsock/build-tiny-config/drivers/net/tun.ko > Traceback (most recent call last): > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 174, in invoke > self.load_all_symbols() > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 161, in load_all_symbols > [self.load_module_symbols(module) for module in module_list] > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 161, in > [self.load_module_symbols(module) for module in module_list] > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 131, in load_module_symbols > sections=self._section_arguments(module)) > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 98, in _section_arguments > section_name_to_address = { > File "/home/stefano/repos/linux_vsock/build-tiny-config/scripts/gdb/linux/symbols.py", line 99, in > attrs[n]['name'].string(): attrs[n]['address'] > gdb.error: There is no member named name. > Error occurred in Python: There is no member named name. > > I'll try to bisect. Dig for changes in the data structure (module_sect_attr). Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux