This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: qSymbol when using symbol-file
- From: Yao Qi <yao at codesourcery dot com>
- To: "catalin dot udma at freescale dot com" <catalin dot udma at freescale dot com>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Cc: Adrian Sendroiu <adrian dot sendroiu at freescale dot com>
- Date: Wed, 18 Jun 2014 10:25:19 +0800
- Subject: Re: qSymbol when using symbol-file
- Authentication-results: sourceware.org; auth=none
- References: <ceacc600bb1d4e4891e074158fb1cd50 at BY2PR03MB175 dot namprd03 dot prod dot outlook dot com>
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 <file>
> (gdb) target remote <ip>:<port>
> -> 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...Packet
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.
--
Yao (éå)