Re: Using XML in GDB?

Bob Rossi
2006-01-26T21:05:49Z

> > > And we get all sorts of things for free; for instance, UTF-8, which will be
> > > handy if someone ever wants to include internationalized descriptions in the
> > > target description.
> > >
> > > Does anyone have a good reason why GDB should not make use of this
> > > well-standardized format instead of inventing additional ad-hoc formats?
> >
> > No objection to using a well-standardized format, but that probably
> > only makes sense if you're not going to write your own parser. And I
> > really would like to avoid making GDB dependent on a library that
> > isn't standardly available on all systems we support.
>
> I definitely have no intention of either writing my own XML parser or
> introducing an external dependence. I am tentatively planning to
> import one of {expat, libxml2} into src/ and arranging for it to be
> built as necessary.

Daniel,

One limitation I have found using libxml is that it doesn't appreciate
you putting certain char's in the file. The NUL char has given me
trouble, and has forced me to use conversion to hex or something.

Bob Rossi