From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20925 invoked by alias); 18 Jun 2014 13:43:54 -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 20895 invoked by uid 89); 18 Jun 2014 13:43:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_50,HELO_DYNAMIC_IPADDR,KAM_STOCKGEN,RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: lvps176-28-13-145.dedicated.hosteurope.de Received: from lvps176-28-13-145.dedicated.hosteurope.de (HELO lvps176-28-13-145.dedicated.hosteurope.de) (176.28.13.145) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jun 2014 13:43:47 +0000 Received: from dabox.localnet (unknown [213.157.30.19]) by lvps176-28-13-145.dedicated.hosteurope.de (Postfix) with ESMTPSA id E958D1BF5C001; Wed, 18 Jun 2014 15:43:44 +0200 (CEST) From: Tim Sander To: gdb@sourceware.org Cc: Yao Qi , "catalin.udma@freescale.com" , Adrian Sendroiu Subject: Re: qSymbol when using symbol-file Date: Wed, 18 Jun 2014 13:43:00 -0000 Message-ID: <2767726.epkPj2gGcM@dabox> User-Agent: KMail/4.13 (Linux/3.13.0; KDE/4.13.0; x86_64; ; ) In-Reply-To: <53A0F88F.3020004@codesourcery.com> References: <53A0F88F.3020004@codesourcery.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00050.txt.bz2 Hi Thanks for your replies! Am Mittwoch, 18. Juni 2014, 10:25:19 schrieb Yao Qi: > On 06/03/2014 04:58 PM, catalin.udma@freescale.com wrote: > > In the gdb/gdbserver scenario, gdb is not sending qSymbol packet when > > using "symbol-file", without "file" or "exec-file".> > > The steps are: > > start gdb (with no arguments) > > (gdb) symbol-file > > (gdb) target remote : > > -> qSymbol packet is not sent. > > I can reproduce it on GDB 7.7, but can't reproduce it on GDB HEAD > (20140617) and 7.8 pre-release (gdb-7.7.90). > > 1. Start gdbserver > $ ./gdbserver/gdbserver :1234 ./testsuite/gdb.base/wchar > 2. Start gdb > $ ./gdb > (gdb) symbol-file ./testsuite/gdb.base/wchar > Reading symbols from ./testsuite/gdb.base/wchar...done. > (gdb) set debug remote 1 > (gdb) target remote :1234 > .... > 0x42d0c050 in ?? () > Sending packet: $qSymbol::#5b...Packet received: > qSymbol:6764625f6167656e745f6764625f74705f686561705f627566666572 > Packet qSymbol (symbol-lookup) is supported > Sending packet: > $qSymbol::6764625f6167656e745f6764625f74705f686561705f627566666572#1e...Pack > et received: qSymbol:6e70746c5f76657273696f6e > Sending packet: $qSymbol::6e70746c5f76657273696f6e#4d...Packet received: OK > > qSymbol is sent. You can use gdb 7.8 which will be released soon. Thanks for the information. I searched the internet but couldn't find some documentation besides the release notes and a high level description in the online manual? Its currently not clear to me how that feature is to be used, especially for the bare hw layer? Best regards Tim