From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4088 invoked by alias); 3 Jun 2014 08:59:07 -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 3998 invoked by uid 89); 3 Jun 2014 08:59:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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 X-HELO: na01-bn1-obe.outbound.protection.outlook.com Received: from mail-bn1lp0145.outbound.protection.outlook.com (HELO na01-bn1-obe.outbound.protection.outlook.com) (207.46.163.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 03 Jun 2014 08:59:05 +0000 Received: from BY2PR03MB175.namprd03.prod.outlook.com (10.242.36.148) by BY2PR03MB144.namprd03.prod.outlook.com (10.242.35.150) with Microsoft SMTP Server (TLS) id 15.0.954.9; Tue, 3 Jun 2014 08:59:00 +0000 Received: from BY2PR03MB175.namprd03.prod.outlook.com ([169.254.5.76]) by BY2PR03MB175.namprd03.prod.outlook.com ([169.254.5.76]) with mapi id 15.00.0954.000; Tue, 3 Jun 2014 08:59:00 +0000 From: "catalin.udma@freescale.com" To: "gdb@sourceware.org" CC: Adrian Sendroiu Subject: qSymbol when using symbol-file Date: Tue, 03 Jun 2014 08:59:00 -0000 Message-ID: x-microsoft-antispam: BL:0;ACTION:Default;RISK:Low;SCL:0;SPMLVL:NotSpam;PCL:0;RULEID: x-forefront-prvs: 02318D10FB x-forefront-antispam-report: SFV:NSPM;SFS:(6009001)(428001)(189002)(199002)(21056001)(77982001)(74502001)(76482001)(74662001)(33646001)(83322001)(19580395003)(31966008)(46102001)(561944003)(79102001)(4396001)(20776003)(80022001)(87936001)(81342001)(83072002)(76576001)(99396002)(66066001)(99286001)(101416001)(64706001)(50986999)(15975445006)(92566001)(74316001)(85852003)(54356999)(2656002)(81542001)(86362001)(185383001)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:BY2PR03MB144;H:BY2PR03MB175.namprd03.prod.outlook.com;FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (: freescale.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=catalin.udma@freescale.com; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-SW-Source: 2014-06/txt/msg00003.txt.bz2 Hi, In the gdb/gdbserver scenario, gdb is not sending qSymbol packet when using= "symbol-file", without "file" or "exec-file". The steps are: =A0 start gdb (with no arguments) =A0 (gdb) symbol-file =A0 (gdb) target remote : ->=A0 qSymbol packet is not sent. If the "file" command =A0is used instead of "symbol-file", the qSymbol pack= et is sent to gdbserver. The question makes more sense in the following context: Using Eclipse and D= SF -GDB Hardware Debugging . Here, Eclipse is not using "file", but only "s= ymbol-file" ( as explained why here: [1] ). =A0This =A0makes qSymbol notifi= cation not working.=20 My questions/comments: - In the above scenario, does make sense to enable qSymbol notification eve= n when the exec-file is not specified? Here is not required to specify the = =A0exec file. Or even in the gdb/gdbserver scenario where the application/e= xecutable is started by gdbserver on target. - For the particular case when some symbol files are added after "target re= mote", gdb is sending qSymbol, even without having the exec file specified.= =A0The above proposal would be in sync with this. - What would be your other thoughts to fix the qSymbol for the gdb + Eclips= e with DSF GDB Hardware Debugging scenario ? Regards, Catalin [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D310304