* [RFC, take 2] Optional expat
@ 2006-08-08 18:07 Daniel Jacobowitz
2006-08-08 19:16 ` Eli Zaretskii
2006-08-08 20:22 ` Mark Kettenis
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-08-08 18:07 UTC (permalink / raw)
To: gdb-patches
Mark Kettenis made a couple of good points about requiring expat, the
best of which was that so far there are only remote debugging features
which use it. I wouldn't mind there being more native and common
features which used it, but they aren't ready yet, and we can always
come back to this decision when they are.
So this patch adds and documents an optional dependency on expat; we'll
use it only if it's found. A good first step, I think.
Comments? OK to commit?
--
Daniel Jacobowitz
CodeSourcery
2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
* configure.ac: Check for expat.
* acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
* Makefile.in (LIBEXPAT): New.
(CLIBS): Include $(LIBEXPAT).
* README: Mention expat.
* configure, config.in: Regenerated.
2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.texinfo (Installing GDB): Update menu. Move text to...
(Running Configure): ...here.
(Requirements): New node. Mention expat.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.836
diff -u -p -r1.836 Makefile.in
--- Makefile.in 8 Aug 2006 17:39:10 -0000 1.836
+++ Makefile.in 8 Aug 2006 18:01:53 -0000
@@ -128,6 +128,9 @@ READLINE = $(READLINE_DIR)/libreadline.a
READLINE_SRC = $(srcdir)/$(READLINE_DIR)
READLINE_CFLAGS = -I$(READLINE_SRC)/..
+# Where is expat? This will be empty if expat was not available.
+LIBEXPAT = @LIBEXPAT@
+
WARN_CFLAGS = @WARN_CFLAGS@
WERROR_CFLAGS = @WERROR_CFLAGS@
GDB_WARN_CFLAGS = $(WARN_CFLAGS)
@@ -376,7 +379,7 @@ INSTALLED_LIBS=-lbfd -lreadline -lopcode
-lintl -liberty
CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) \
$(XM_CLIBS) $(TM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ \
- $(LIBICONV) \
+ $(LIBICONV) $(LIBEXPAT) \
$(LIBIBERTY) $(WIN32LIBS)
CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS)
Index: README
===================================================================
RCS file: /cvs/src/src/gdb/README,v
retrieving revision 1.36
diff -u -p -r1.36 README
--- README 17 May 2006 14:40:39 -0000 1.36
+++ README 8 Aug 2006 18:01:53 -0000
@@ -89,6 +89,11 @@ C compiler for your system, you may be a
the GNU CC compiler. It is available via anonymous FTP from the
directory `ftp://ftp.gnu.org/pub/gnu/gcc'.
+ GDB uses Expat, an XML parsing library, to implement some target-specific
+features. Expat will be linked in if it is available at build time, or
+those features will be disabled. The latest version of Expat should be
+available from `http://expat.sourceforge.net'.
+
GDB can be used as a cross-debugger, running on a machine of one
type while debugging a program running on a machine of another type.
See below.
Index: acinclude.m4
===================================================================
RCS file: /cvs/src/src/gdb/acinclude.m4,v
retrieving revision 1.15
diff -u -p -r1.15 acinclude.m4
--- acinclude.m4 31 May 2006 15:14:36 -0000 1.15
+++ acinclude.m4 8 Aug 2006 18:01:54 -0000
@@ -12,6 +12,11 @@ sinclude(../config/stdint.m4)
sinclude(../config/gettext-sister.m4)
+dnl For AC_LIB_HAVE_LINKFLAGS.
+sinclude(../config/lib-ld.m4)
+sinclude(../config/lib-prefix.m4)
+sinclude(../config/lib-link.m4)
+
dnl CYGNUS LOCAL: This gets the right posix flag for gcc
AC_DEFUN([CY_AC_TCL_LYNX_POSIX],
[AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AC_PROG_CPP])
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.33
diff -u -p -r1.33 configure.ac
--- configure.ac 31 May 2006 15:14:37 -0000 1.33
+++ configure.ac 8 Aug 2006 18:01:56 -0000
@@ -315,6 +315,12 @@ if test "$ac_cv_search_tgetent" = no; th
AC_MSG_ERROR([no termcap library found])
fi
+AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"],
+ [XML_Parser p = XML_ParserCreate (0);])
+if test "$HAVE_LIBEXPAT" != yes; then
+ AC_MSG_WARN([expat is missing or unusable; some features may be disabled.])
+fi
+
# ------------------------- #
# Checks for header files. #
# ------------------------- #
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.346
diff -u -p -r1.346 gdb.texinfo
--- doc/gdb.texinfo 8 Aug 2006 15:48:08 -0000 1.346
+++ doc/gdb.texinfo 8 Aug 2006 18:01:59 -0000
@@ -21891,10 +21891,49 @@ Then give @file{gdb.dvi} to your @sc{dvi
@node Installing GDB
@appendix Installing @value{GDBN}
-@cindex configuring @value{GDBN}
@cindex installation
-@cindex configuring @value{GDBN}, and source tree subdirectories
+@menu
+* Requirements:: Requirements for building @value{GDBN}
+* Running Configure:: Invoking the @value{GDBN} @code{configure} script
+* Separate Objdir:: Compiling @value{GDBN} in another directory
+* Config Names:: Specifying names for hosts and targets
+* Configure Options:: Summary of options for configure
+@end menu
+
+@node Requirements
+@section Requirements for building @value{GDBN}
+
+Building @value{GDBN} requires various tools and packages to be available.
+Other packages will be used only if they are found.
+
+@heading Tools/packages necessary for building @value{GDBN}
+@table @asis
+@item ISO C90 compiler
+@value{GDBN} is written in ISO C90. It should be buildable with any
+working C90 compiler, e.g.@: GCC.
+
+@end table
+
+@heading Tools/packages optional for building @value{GDBN}
+@table @asis
+@item Expat
+@value{GDBN} can use the Expat XML parsing library. This library may be
+included with your operating system distribution; if it is not, you
+can get the latest version from @url{http://expat.sourceforge.net}.
+The @code{configure} script will search for this library in several
+standard locations; if it is installed in an unusual path, you can
+use the @samp{--with-libexpat-prefix} option to specify its location.
+
+Expat is used currently only used to implement some remote-specific
+features.
+
+@end table
+
+@node Running Configure
+@section Invoking the @value{GDBN} @code{configure} script
+@cindex configuring @value{GDBN}
+@cindex configuring @value{GDBN}, and source tree subdirectories
@value{GDBN} comes with a @code{configure} script that automates the process
of preparing @value{GDBN} for installation; you can then use @code{make} to
build the @code{gdb} program.
@@ -22000,12 +22039,6 @@ the @samp{SHELL} environment variable) i
that @value{GDBN} uses the shell to start your program---some systems refuse to
let @value{GDBN} debug child processes whose programs are not readable.
-@menu
-* Separate Objdir:: Compiling @value{GDBN} in another directory
-* Config Names:: Specifying names for hosts and targets
-* Configure Options:: Summary of options for configure
-@end menu
-
@node Separate Objdir
@section Compiling @value{GDBN} in another directory
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC, take 2] Optional expat
2006-08-08 18:07 [RFC, take 2] Optional expat Daniel Jacobowitz
@ 2006-08-08 19:16 ` Eli Zaretskii
2006-08-08 19:28 ` Daniel Jacobowitz
2006-08-08 20:22 ` Mark Kettenis
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2006-08-08 19:16 UTC (permalink / raw)
To: gdb-patches
> Date: Tue, 8 Aug 2006 14:07:06 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> +@node Requirements
> +@section Requirements for building @value{GDBN}
I think this section would benefit from at least one @cindex entry.
> +use the @samp{--with-libexpat-prefix} option to specify its location.
I think @option is better than @samp here.
> +@cindex configuring @value{GDBN}
> +@cindex configuring @value{GDBN}, and source tree subdirectories
Please remove the second @cindex entry. (Yes, I know you just moved
it from the current place.) It's a bad idea to have several index
entries that begin with the same (long) string and point to the same
page.
Other than that, the doco patch is okay with me.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC, take 2] Optional expat
2006-08-08 19:16 ` Eli Zaretskii
@ 2006-08-08 19:28 ` Daniel Jacobowitz
2006-08-08 21:32 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-08-08 19:28 UTC (permalink / raw)
To: gdb-patches
On Tue, Aug 08, 2006 at 10:16:35PM +0300, Eli Zaretskii wrote:
> Other than that, the doco patch is okay with me.
Thanks! I've made these changes. The new @cindex is:
+@node Requirements
+@section Requirements for building @value{GDBN}
+@cindex building @value{GDBN}, requirements for
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC, take 2] Optional expat
2006-08-08 19:28 ` Daniel Jacobowitz
@ 2006-08-08 21:32 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2006-08-08 21:32 UTC (permalink / raw)
To: gdb-patches
> Date: Tue, 8 Aug 2006 15:28:50 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Tue, Aug 08, 2006 at 10:16:35PM +0300, Eli Zaretskii wrote:
> > Other than that, the doco patch is okay with me.
>
> Thanks! I've made these changes. The new @cindex is:
>
> +@node Requirements
> +@section Requirements for building @value{GDBN}
> +@cindex building @value{GDBN}, requirements for
Perfect, thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC, take 2] Optional expat
2006-08-08 18:07 [RFC, take 2] Optional expat Daniel Jacobowitz
2006-08-08 19:16 ` Eli Zaretskii
@ 2006-08-08 20:22 ` Mark Kettenis
2006-08-08 20:27 ` Daniel Jacobowitz
1 sibling, 1 reply; 6+ messages in thread
From: Mark Kettenis @ 2006-08-08 20:22 UTC (permalink / raw)
To: drow; +Cc: gdb-patches
> Date: Tue, 8 Aug 2006 14:07:06 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> Mark Kettenis made a couple of good points about requiring expat, the
> best of which was that so far there are only remote debugging features
> which use it. I wouldn't mind there being more native and common
> features which used it, but they aren't ready yet, and we can always
> come back to this decision when they are.
>
> So this patch adds and documents an optional dependency on expat; we'll
> use it only if it's found. A good first step, I think.
>
> Comments? OK to commit?
Thanks Daniel,
I'm fine with this.
>
> 2006-08-08 Daniel Jacobowitz <dan@codesourcery.com>
>
> * configure.ac: Check for expat.
> * acinclude.m4: Include AC_LIB_HAVE_LINKFLAGS dependencies.
> * Makefile.in (LIBEXPAT): New.
> (CLIBS): Include $(LIBEXPAT).
> * README: Mention expat.
> * configure, config.in: Regenerated.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC, take 2] Optional expat
2006-08-08 20:22 ` Mark Kettenis
@ 2006-08-08 20:27 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-08-08 20:27 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb-patches
On Tue, Aug 08, 2006 at 10:22:18PM +0200, Mark Kettenis wrote:
> > Date: Tue, 8 Aug 2006 14:07:06 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> >
> > Mark Kettenis made a couple of good points about requiring expat, the
> > best of which was that so far there are only remote debugging features
> > which use it. I wouldn't mind there being more native and common
> > features which used it, but they aren't ready yet, and we can always
> > come back to this decision when they are.
> >
> > So this patch adds and documents an optional dependency on expat; we'll
> > use it only if it's found. A good first step, I think.
> >
> > Comments? OK to commit?
>
> Thanks Daniel,
>
> I'm fine with this.
Thanks a lot! I'm glad we eventually were able to agree.
I've checked this in. Anyone, please let me know if it causes some
trouble (or if you expect it to find expat and it doesn't).
Meanwhile, I'm updating the vec.c/vec.h and flash support patches
to use this. I'll repost them soon, including style corrections
where needed; hopefully tomorrow, but my track record for things I said
I'd have done by the next day is not great.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-08-08 21:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-08 18:07 [RFC, take 2] Optional expat Daniel Jacobowitz
2006-08-08 19:16 ` Eli Zaretskii
2006-08-08 19:28 ` Daniel Jacobowitz
2006-08-08 21:32 ` Eli Zaretskii
2006-08-08 20:22 ` Mark Kettenis
2006-08-08 20:27 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox