* How to load XML target description?
@ 2010-02-04 20:36 H.J. Lu
2010-02-04 20:47 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2010-02-04 20:36 UTC (permalink / raw)
To: GDB
Hi,
I have created x86 XML target files. One of them has
---
<target>
<architecture>i386</architecture>
<osabi>GNU/Linux</osabi>
<xi:include href="32bit-core.xml"/>
<xi:include href="32bit-linux.xml"/>
<xi:include href="32bit-sse.xml"/>
</target>
---
When I connected gdb to gdbserver, it replied with
getpkt ("qXfer:features:read:target.xml:0,fff"); [no ack sent]
putpkt ("$l<?xml version="1.0"?>
<!-- Copyright (C) 2010 Free Software Foundation, Inc.
*!Copying and distribution of this file, with or without modification,
*!are permitted in any medium without royalty provided the copyright
*!notice and this notice are preserved. -->
<!-- I386 with SSE - Includes Linux-only special "register". -->
<!DOCTYPE target SYSTEM "gdb-target.dtd">
<target>
<architecture>i386</architecture>
<osabi>GNU/Linux</osabi>
<xi:include href="32bit-core.xml"/>
<xi:include href="32bit-linux.xml"/>
<xi:include href="32bit-sse.xml"/>
</target>
#82"); [noack mode]
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?
Thanks.
--
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to load XML target description?
2010-02-04 20:36 How to load XML target description? H.J. Lu
@ 2010-02-04 20:47 ` Daniel Jacobowitz
2010-02-04 21:06 ` H.J. Lu
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2010-02-04 20:47 UTC (permalink / raw)
To: H.J. Lu; +Cc: GDB
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.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to load XML target description?
2010-02-04 20:47 ` Daniel Jacobowitz
@ 2010-02-04 21:06 ` H.J. Lu
2010-02-04 21:09 ` H.J. Lu
0 siblings, 1 reply; 4+ messages in thread
From: H.J. Lu @ 2010-02-04 21:06 UTC (permalink / raw)
To: H.J. Lu, GDB
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to load XML target description?
2010-02-04 21:06 ` H.J. Lu
@ 2010-02-04 21:09 ` H.J. Lu
0 siblings, 0 replies; 4+ messages in thread
From: H.J. Lu @ 2010-02-04 21:09 UTC (permalink / raw)
To: H.J. Lu, GDB
On Thu, Feb 4, 2010 at 1:06 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
I see what is wrong.
--
H.J.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-04 21:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-04 20:36 How to load XML target description? H.J. Lu
2010-02-04 20:47 ` Daniel Jacobowitz
2010-02-04 21:06 ` H.J. Lu
2010-02-04 21:09 ` H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox