From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10136 invoked by alias); 4 Feb 2004 23:50:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10124 invoked from network); 4 Feb 2004 23:50:42 -0000 Received: from unknown (HELO smtp10.atl.mindspring.net) (207.69.200.246) by sources.redhat.com with SMTP; 4 Feb 2004 23:50:42 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by smtp10.atl.mindspring.net with esmtp (Exim 3.33 #1) id 1AoWmj-0002X3-00; Wed, 04 Feb 2004 18:50:21 -0500 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 2F9374B364; Wed, 4 Feb 2004 18:50:29 -0500 (EST) To: drow@mvista.com, mec.gnu@mindspring.com Subject: Re: Problems with dejagnu and c++ tests... Cc: brobecker@gnat.com, cagney@gnu.org, gdb-patches@sources.redhat.com Message-Id: <20040204235029.2F9374B364@berman.michael-chastain.com> Date: Wed, 04 Feb 2004 23:50:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-02/txt/msg00091.txt.bz2 drow> I think assuming we can compile and run is fine. Output is an drow> absolutely no-show, however. Take a look at how many of our supported drow> targets don't have any kind of remote file I/O capability - gdbserver, drow> for one. Argh. Okay. Although I'm not talking about file I/O, I'm talking about write to stdout. There are 58 *.[Cc] files with printf already. With the pre-process strategy, I think I have to hit this code: # Source the output. foreach cppline ... { next if $cppline =~ m/^#/; next if $cppline =~ m/^\s*$/; eval { $cppline }; } (Oops, I wrote that in Perl!) These need some more checks before eval'ing cppline. The only lines I want to eval are 'set' commands; anything else can be treated as a compiler diagnostic. Forward it with 'verbose -log' and set the compiler variables to an "unknown" state. That would fix Joel's case. Michael C