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]

Re: [RFA] Update gdb's configure instructions


> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>
> Date: Thu, 13 Sep 2018 22:29:46 -0600
> 
> This also removes the PROBLEMS file, as it seems unused.  It hasn't
> been updated since before the 7.3 release.

How about replacing PROBLEMS with a file that just points people to
the GDB Bugzilla, and perhaps tells how to search Bugzilla for GDB
problems that are still not solved in version X.Y.Z of GDB?

> The README file seems to have been generated from the Texinfo at some
> point in the past.  I did not continue this, but instead edited it
> separately.

Ideally, README should include some details about optional build
features that allow the user to decide which options to request.  The
help text provided by gdb/configure is too terse, and I'm not even
sure many people realize that they need to run "./gdb/configure --help"
rather than the top-level configure script.  Perhaps README should at
least tell that.  Bonus points for describing other optional build
features with enough information for users to understand whether each
option will be useful for them.  For example, some features are only
relevant for ELF systems, others only for GNU/Linux, etc., but there's
no info on that in README or "configure --help".

>     When submitting a bug, please include the GDB version number, and
>  how you configured it (e.g., "sun4" or "mach386 host,
> -i586-intel-synopsys target").  Since GDB now supports so many
> +i586-intel-synopsys target").  Since GDB supports so many
>  different configurations, it is important that you be precise about
>  this.  If at all possible, you should include the actual banner
>  that GDB prints when it starts up, or failing that, the actual

Should this text mention the gdb --config option and the corresponding
"show configuration" command?

> +@item Guile
> +@value{GDBN} can be scripted using GNU Guile.  @xref{Guile}.  By
> +default, @value{GDBN} will be compiled if the Guile libraries are
> +available.

Something is missing in the last sentence.  Also, I'm not sure "if the
Guile libraries are available" is explicit enough.  How about

  if the Guile libraries are installed and are found by the configure
  script

> +On systems without @code{iconv}, you can install GNU Libiconv.  If you
> +have previously installed Libiconv, you can use the
> +@option{--with-libiconv-prefix} option to configure.

I would suggest here to say explicitly that if libiconv is installed
in a standard place, then the configure script will find it and
compile GDB with it.

> +@value{GDBN}'s top-level @file{configure} and @file{Makefile} will
> +arrange to build Libiconv if a directory named @file{libiconv} appears
> +in the top-most source directory.  If Libiconv is built this way, and
> +if the operating system does not provide a suitable @code{iconv}
> +implementation, then the just-built library will automatically be used
> +by @value{GDBN}.  One easy way to set this up is to download GNU
> +Libiconv, unpack it, and then rename the directory holding the
> +Libiconv source code to @samp{libiconv}.

I think it is better to say explicitly "unpack it inside the top-level
directory of the GDB source tree", instead of just "unpack it".

> +@item lzma
> +@value{GDBN} can support debugging sections that are compressed with
> +the LZMA library.  @xref{MiniDebugInfo}.  If this library is not
> +included with your operating system, you can find it in the xz package
> +at @url{http://tukaani.org/xz/}.  If it is installed in an unusual
> +path, you can use the @option{--with-lzma-prefix} option to specify
> +its location.

Again, before talking about lzma being installed in an unusual place,
I'd suggest to say something about its being installed in the usual
place, i.e. that the configure script will find it automatically.

> +@item Python
> +@value{GDBN} can be scripted using Python language.  @xref{Python}.
> +By default, @value{GDBN} will be compiled if the Python libraries are
> +available.

Same problem in the last sentence here as in the Guile section above.

> +You can install @code{@value{GDBP}} anywhere.  The best way to do this

I think this should be "GDBN", not "GDBP".

Thanks.


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