Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Chastain <mec.gnu@mindspring.com>
To: mckinlay@redhat.com, cagney@gnu.org
Cc: jimb@redhat.com, gdb-patches@sources.redhat.com
Subject: Re: Patch: Handle relative paths in .debug_line
Date: Sun, 01 Aug 2004 00:24:00 -0000	[thread overview]
Message-ID: <410C3827.nail9MK1UJ0M2@mindspring.com> (raw)
In-Reply-To: <410C0640.1080700@gnu.org>

Andrew Cagney <cagney@gnu.org> wrote:
> Your dejagnu is too old :-(

That is the problem all right.  I need to write some more doco.
In the interim, here is a brain dump for Bryce.

You need three packages to test Gdb: TCL, Expect, and DejaGnu.  TCL
provides the TCL library.  Expect provides the 'expect' executable,
which is linked with the TCL library.  And DejaGnu provides the
'runtest' shell script, which needs the 'expect' executable.

You can find the version of these packages by running:

  % runtest --version
  WARNING: Couldn't find the global config file.
  Expect version is       5.41.0
  Tcl version is          8.4
  Framework version is    1.4.4

The 'framework version' is the DejaGnu version.
The TCL version is misreported, I've got TCL 8.4.6,
but 'runtest --version' is reporting only two digits of it.

To test Gdb, you need these versions: TCL 8.4.1 or later, 
Expect 5.27 or later, and DejaGnu 1.4.3 or later.
In particular, if you get an error on proc setup_kfail,
that means your Dejagnu is too old.

You can download these packages from:

  TCL	   ftp://ftp2.sourceforge.net/pub/sourceforge/t/tc/tcl/tcl8.4.6-src.tar.gz
  Expect   http://expect.nist.gov/src/expect-5.41.0.tar.gz
  DejaGnu  ftp://ftp.gnu.org/pub/gnu/dejagnu/dejagnu-1.4.4.tar.gz

To build TCL:

  Unpack the source.
  Make build and install directories.
  cd $dir_build
  $dir_source/unix/configure --prefix="$dir_install" --enable-gcc --disable-shared
  make all
  make install
  cd $dir_install/bin
  ln -s tclsh8.4 tclsh

The '--prefix' lets you keep your own private install trees without
  interfering with /usr/bin or /usr/local/bin.
Use '--enable-gcc' if you are compiling with gcc.
The '--disable-shared' is optional but I always use it.
The 'ln -s' at the end is needed by DejaGnu.

To build Expect:

  Unpack the source.
  Make build and install directories.
  PATH="$dir_install_tcl/bin":"$PATH"
  export PATH
  cd $dir_build
  $dir_source/configure --prefix="$dir_install" --disable-shared --with-tcl="$dir_install_tcl/lib" --with-tclconfig="$dir_install_tcl/lib" --with-tclinclude="$dir_source_tcl/generic"
  make all
  make install

Expect needs to be configured with the TCL library that you just built.
--disable-shared is optional, as before.
"$dir_install_tcl" is the "$dir_install" where you installed TCL.
"$dir_source_tcl" is the "$dir_source" where you unpacked the TCL source.
[Hmmm, that could probably be "$dir_install_tcl/include" instead of
"$dir_source_tcl/generic", I need to work on my own script].

To build DejaGnu:

  Unpack the source.
  Make build and install directories.
  PATH="$dir_install_expect/bin":"$dir_install_tcl/bin":"$PATH"
  export PATH
  cd $dir_build
  $dir_source/configure --prefix="$dir_install" --with-tclinclude="$dir_install_tcl/bin"
  make all
  make install

DejaGnu needs to find the directory where you installed Expect,
so $dir_install_expect/bin has to be in your path.  I also throw
in the directory where TCL is installed, although TCL is mostly
a library.

To test GDB:

  PATH="$dir_install_dejagnu/bin":"$dir_install_expect/bin":$PATH
  runtest --version
  make check

Hope this helps,

Michael C


  reply	other threads:[~2004-08-01  0:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22 23:31 Bryce McKinlay
2004-07-23 21:13 ` Jim Blandy
2004-07-23 23:54   ` Bryce McKinlay
2004-07-29 20:19     ` Jim Blandy
2004-07-29 20:54       ` Bryce McKinlay
2004-07-31  4:16         ` Jim Blandy
2004-07-31 19:23           ` Bryce McKinlay
2004-07-31 20:51             ` Andrew Cagney
2004-08-01  0:24               ` Michael Chastain [this message]
2004-09-14 19:53           ` Andrew Cagney
2004-09-14 20:09             ` Bryce McKinlay
2004-09-24 19:12               ` Andrew Cagney
2004-09-30  0:40 Garrison
2004-09-30  0:49 ` Garrison
2004-10-01 18:23   ` Igor Kovalenko

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=410C3827.nail9MK1UJ0M2@mindspring.com \
    --to=mec.gnu@mindspring.com \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@redhat.com \
    --cc=mckinlay@redhat.com \
    /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