From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31242 invoked by alias); 4 Jun 2010 23:40:09 -0000 Received: (qmail 31231 invoked by uid 22791); 4 Jun 2010 23:40:08 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Jun 2010 23:40:03 +0000 Received: (qmail 1269 invoked from network); 4 Jun 2010 23:40:01 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Jun 2010 23:40:01 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Help, minor bug in testsuite Date: Fri, 04 Jun 2010 23:40:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.32-22-generic; KDE/4.4.2; x86_64; ; ) Cc: Michael Snyder References: <4C097DAF.3090100@vmware.com> In-Reply-To: <4C097DAF.3090100@vmware.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006050039.57654.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00020.txt.bz2 On Friday 04 June 2010 23:26:55, Michael Snyder wrote: > OK, not sure what to do with this one. The test in gdb.base/list.exp > says: > > # Try listsize of 0 which suppresses printing. > > set_listsize 0 > gdb_test "list 1" "" "listsize of 0 suppresses output" > > > However, the test only passes because "" is the same as ".*". > In fact, the output is NOT suppressed, and I can find nowhere > in the documentation that says it SHOULD be suppressed. (Without commenting on whether setting listsize to 0 to suppress output had any value,) it appears to be a regression at some point. Note with GDB 6.0: >~/gdb/ancient/build-6.0/gdb/gdb ~/gdb/tests/main32 GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) list 1 1 #include 2 3 int main (int argc, char **argv) 4 { 5 return 0; 6 } (gdb) set listsize 0 (gdb) list 1 (gdb) vs current gdb: >./gdb ~/gdb/tests/main32 GNU gdb (GDB) 7.1.50.20100601-cvs Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/pedro/gdb/tests/main32...done. (gdb) set listsize 0 (gdb) list 1 1 #include 2 3 int main (int argc, char **argv) 4 { 5 return 0; 6 } (gdb) > I'm not sure what to do with this test... -- Pedro Alves