From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Make version attribute of <target> really optional
Date: Fri, 29 Feb 2008 17:23:00 -0000 [thread overview]
Message-ID: <20080229134822.GA2903@caradoc.them.org> (raw)
In-Reply-To: <20080229035744.GK19729@adacore.com>
On Thu, Feb 28, 2008 at 07:57:44PM -0800, Joel Brobecker wrote:
> Hello,
>
> I'm trying to fix the type of the "lr" register in the XML features
> files for rs6000, but I have hit a strange problem: The XML parser
> is complaining that the version number in the <target> element is
> missing. On the other hand, the documentation says that it is
> optional (but recommended).
>
> Looking back at the discussion, it seems that the attribute was
> meant to be optional for now. But on the other hand, the implementation
> was such that the attribute is NOT optional.
The DTD says:
version CDATA #FIXED "1.0"
What's supposed to happen is that expat fills in this value when you
parse the document. It will complain if version is set to something
besides 1.0, but add version="1.0" if it was not specified.
It looks to me like something is wrong with your expat, or we are
depending on a configuration knob of expat that you've got turned the
other way and we should improve the configure test, or else we are
using expat in a way that broke with 2.0.1 (I usually use 1.95.8 since
that's what Debian has).
> I thought it'd quickly give it a go at making the attribute optional,
> and the following seems to be working, but now I'm having other issues
> when trying to read the XML file from GDB:
>
> (gdb) set tdesc filename rs6000/powerpc-32.xml
> warning: while parsing target description: unbound prefix
> warning: Could not load XML target description; ignoring
Ditto. When this error occurs, which parser is running? There's two,
one for the gdb-target.dtd and one preprocessor for xi:include.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-02-29 13:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-29 4:45 Joel Brobecker
2008-02-29 17:23 ` Daniel Jacobowitz [this message]
2008-02-29 17:34 ` Joel Brobecker
2008-02-29 19:15 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080229134822.GA2903@caradoc.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox