From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45393 invoked by alias); 8 Aug 2018 11:15:52 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 44321 invoked by uid 89); 8 Aug 2018 11:15:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:sk:HE1PR06, HX-Microsoft-Antispam-PRVS:sk:HE1PR06, Hx-spam-relays-external:sk:HE1PR06 X-HELO: EUR04-DB3-obe.outbound.protection.outlook.com Received: from mail-eopbgr60041.outbound.protection.outlook.com (HELO EUR04-DB3-obe.outbound.protection.outlook.com) (40.107.6.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Aug 2018 11:15:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.onmicrosoft.com; s=selector1-cern-ch; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ay9V2//8JQ+Cy+ksEugDCBTJ2ySkoQQmWchzkg0eCo4=; b=JxoPlsZmeW3eohOIXTi1yEDxQvjSMaSH2YtR6Md7qHyBHAzDVd1tCZOUSnwH4uxvQOX0WGAZJclSNSVRBLBDSM50lX0gPbLiBvFvkAYWIlHRqI9ukB4dm+sj2vM/LoyICpSmrff5twp9SQIr9K0nS5QledoOWumOrQCTZgySL0I= Received: from HE1PR06CA0131.eurprd06.prod.outlook.com (2603:10a6:7:16::18) by HE1PR0601MB2475.eurprd06.prod.outlook.com (2603:10a6:3:96::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Wed, 8 Aug 2018 11:15:05 +0000 Received: from AM5EUR02FT053.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e1e::208) by HE1PR06CA0131.outlook.office365.com (2603:10a6:7:16::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1038.19 via Frontend Transport; Wed, 8 Aug 2018 11:15:05 +0000 Authentication-Results: spf=pass (sender IP is 188.184.36.46) smtp.mailfrom=cern.ch; sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=bestguesspass action=none header.from=cern.ch; Received-SPF: Pass (protection.outlook.com: domain of cern.ch designates 188.184.36.46 as permitted sender) receiver=protection.outlook.com; client-ip=188.184.36.46; helo=cernmxgwlb4.cern.ch; Received: from cernmxgwlb4.cern.ch (188.184.36.46) by AM5EUR02FT053.mail.protection.outlook.com (10.152.9.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.1038.3 via Frontend Transport; Wed, 8 Aug 2018 11:15:05 +0000 Received: from CERNFE25.cern.ch (137.138.203.208) by cernmxgwlb4.cern.ch (188.184.36.46) with Microsoft SMTP Server (TLS) id 14.3.399.0; Wed, 8 Aug 2018 13:14:48 +0200 Received: from CERNXCHG73.cern.ch ([fe80::10e6:ac8e:2ea7:c5e7]) by CERNFE25.cern.ch ([fe80::2cd7:dab6:37a7:ce81%10]) with mapi id 14.03.0399.000; Wed, 8 Aug 2018 13:14:49 +0200 From: Viesturs Veckalns To: Simon Marchi CC: "gdb@sourceware.org" Subject: RE: GDB support: Couldn't find method Date: Wed, 08 Aug 2018 11:15:00 -0000 Message-ID: <3FAD73755234DA45BB9E7CAA811E9CB70102A57FD6@CERNXCHG73.cern.ch> References: <3FAD73755234DA45BB9E7CAA811E9CB70102A57F27@CERNXCHG73.cern.ch>, In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Return-Path: viesturs.veckalns@cern.ch X-SW-Source: 2018-08/txt/msg00022.txt.bz2 Hello Simon, It turns out gdb does not know anything about class methods and nested clas= ses loaded from the shared library: (gdb) ptype GetLevel(resultcode)=20=20=20=20=20=20=20=20=20=20=20=20=20 type =3D struct CompoundHistoUnfolding::Level { } * (gdb) ptype CompoundHistoUnfolding::Level=20=20=20=20=20=20=20=20=20 There is no field named Level gdb can list members of class CompoundHistoUnfolding but does not know abou= t classes interfaced with the #include directive: (gdb) ptype CompoundHistoUnfolding=20=20=20=20=20=20=20 type =3D class CompoundHistoUnfolding : public TNamed { private: Python Exception No type named TString.:=20 std::map, std::allocator > > aggrbackgroundMC; Python Exception No type named HistoUnfolding*.:=20 std::vector > _vbackgr= oundhistos; Python Exception No type named SampleDescriptor*.:=20 std::vector > _exp= syssamples; std::vector > _mar= kedsyssamples; HistoUnfoldingTH2 *totalbackground; char _signal_title[64]; ... How to proceed from this point? Viesturs ________________________________________ From: Simon Marchi [simon.marchi@polymtl.ca] Sent: 08 August 2018 02:27 To: Viesturs Veckalns Cc: gdb@sourceware.org Subject: Re: GDB support: Couldn't find method On 2018-08-04 07:48, Viesturs Veckalns wrote: > Hello! > I compile a binary by linking a library: > > -L${LIBDIR}/lib -lCompoundHisto > > In the debug session the library is listed under > > info sharedlibrary > > Additionally, I requested to read symbols from the relevant source > files by > > set debug-file-directory ${LIBDIR}/interface > set debug-file-directory ${LIBDIR}/src > > Nevertheless, I encounter the following problem: > > p GetLevel(resultcode) -> GetHU(mo) > Couldn't find method CompoundHistoUnfolding::Level::GetHU > > The methods are described in the source to build libCompoundHisto.so > > What is wrong? > > My gdb version is 7.11. > Viesturs Hi Viesturs, A sanity check to see if GDB knows about any GetHU method would to do (gdb) ptype GetLevel(resultcode) or (gdb) ptype CompoundHistoUnfolding::Level Do you see GetHU listed? Simon