How to load XML target description?

H.J. Lu hjl.tools@gmail.com
Thu Feb 4 21:06:00 GMT 2010


On Thu, Feb 4, 2010 at 12:47 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> On Thu, Feb 04, 2010 at 12:36:35PM -0800, H.J. Lu wrote:
>> and in gdb I got
>>
>> (gdb) target remote :10000
>> Remote debugging using :10000
>> warning: while parsing target description (at line 14): Could not load
>> XML document "32bit-core.xml"
>> warning: Could not load XML target description; ignoring
>> Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
>> Loaded symbols for /lib/ld-linux.so.2
>> 0x0042e850 in _start () from /lib/ld-linux.so.2
>> (gdb) help set
>>
>> 32bit-core.xml is in my gdb source tree and not installed by "make install". How
>> do I resolve this?
>
> See srv_xmlfiles in gdbserver/configure.srv.  GDB expects to get the
> file over the remote protocol.
>

I set srv_xmlfiles in gdbserver/configure.srv and I saw gdbserve get

handling possible serial event
getpkt ("qXfer:features:read:32bit-core.xml:0,fff");  [no ack sent]
putpkt ("$E00#a5"); [noack mode]

For some reason, it wouldn't read the file and send it to gdb. Any suggestions?

Thanks.


-- 
H.J.



More information about the Gdb-patches mailing list