Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Cc: Kevin Buettner <kevinb@redhat.com>,
	Michael Elizabeth Chastain <mec@shout.net>,
	Richard.Earnshaw@arm.com
Subject: Re: Changing the C/C++ compiler for gdb testsuite runs
Date: Tue, 15 Jan 2002 10:24:00 -0000	[thread overview]
Message-ID: <20020115132449.A8635@nevyn.them.org> (raw)
In-Reply-To: <20020110143040.A9479@nevyn.them.org>

On Thu, Jan 10, 2002 at 02:30:40PM -0500, Daniel Jacobowitz wrote:
> I do this by different board files.
> 
> In dejagnu/baseboards, copy unix.exp.  Edit it.  It should originally
> say:
> 
> set_board_info compiler  "[find_gcc]";
> 
> 
> I have:
> set_board_info compiler  "/opt/src/gcc/install-30/bin/gcc";
> set_board_info c++compiler  "/opt/src/gcc/install-30/bin/g++";
> 
> There's matching variables for all the other compiler types (Java etc). 
> I don't yet test those.
> 
> Then, to run:
> ../../../src/dejagnu/runtest --target_board "unix unix3" blah.exp
> 
> That will run tests for both the default GCC and the custom in
> install-30.  You can also do:
>   --target_board "unix/gdb:debug_flags=-gdwarf-2"
> to test DWARF-2, or likewise for any other flag.  There's a pure
> /dwarf2 option but don't use it; that's dwarf-1 level 2.  I've been
> forgetting to file a DejaGNU bug report about this.
> 
> The results of this thread should go in the GDB manual somewhere!

As a followup, note that you can _NOT_ test multiple debug formats the
way that GCC tests multilibs.

You need to run with unix/gdb:debug_flags=-gdwarf-2, not just
unix/-gdwarf-2.  If you do the latter, most tests will be compiled with
-g -gdwarf-2 (harmless), but nodebug.exp will be build with -gdwarf-2. 
Oops.


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-01-15 18:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10  8:58 Michael Elizabeth Chastain
2002-01-10 11:10 ` Kevin Buettner
2002-01-10 11:30   ` Daniel Jacobowitz
2002-01-15 10:24     ` Daniel Jacobowitz [this message]
2002-01-15 11:18       ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2002-01-11  8:07 Michael Elizabeth Chastain
2002-01-10  5:46 Richard Earnshaw
2002-01-10 17:30 ` Michael Snyder
2002-01-11  2:23   ` Richard Earnshaw
2002-01-11  7:26     ` Andrew Cagney
2002-01-11  7:38       ` Richard Earnshaw
2002-01-11  7:45         ` Andrew Cagney

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=20020115132449.A8635@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@redhat.com \
    --cc=mec@shout.net \
    /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