From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12284 invoked by alias); 16 Sep 2006 11:19:57 -0000 Received: (qmail 12276 invoked by uid 22791); 16 Sep 2006 11:19:56 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 16 Sep 2006 11:19:49 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GOYCq-0003lq-Nv for gdb-patches@sources.redhat.com; Sat, 16 Sep 2006 13:19:32 +0200 Received: from 73-198.umostel.ru ([82.179.73.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Sep 2006 13:19:32 +0200 Received: from ghost by 73-198.umostel.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Sep 2006 13:19:32 +0200 To: gdb-patches@sources.redhat.com From: Vladimir Prus Subject: Re: Extra diagnostic for tests Date: Sat, 16 Sep 2006 11:19:00 -0000 Message-ID: References: <200609131352.16082.vladimir@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00086.txt.bz2 Vladimir Prus wrote: > > Hi, > at the moment, the dejagnu tests use PATH to find the gdb binary, and > don't report which gdb binary is used. As result, when running runtest > manually on one test, one can test with different gdb from the one used by > 'make check'. > > The attached patch makes gdb print to log file the location of gdb, and > also makes sure invocation parameters are always printed to log file. > While we're on it, the 'serialport' parameter to 'target' command is also > reported. So, what's opinion on this patch, after all? I think the part about better reporting 'target remote' seen no objections, OK to commit that? Speaking of gdb PATH, I've noticed that the very last line of dejagnu output contains the full path to gdb -- apparently I used 'Ctrl-C' too much. Anyway, I think getting this information into log file is still desirable, and it makes sure that .log file is sufficient to reproduce a test failures -- console output might be no longer handy. - Volodya