This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to load XML target description?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]