From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31781 invoked by alias); 8 Dec 2003 23:49:01 -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 31769 invoked from network); 8 Dec 2003 23:48:59 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 8 Dec 2003 23:48:59 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E7BDB2B8F; Mon, 8 Dec 2003 18:48:58 -0500 (EST) Message-ID: <3FD50DEA.2070203@redhat.com> Date: Mon, 08 Dec 2003 23:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Elizabeth Chastain Cc: fnf@ninemoons.com, gdb-patches@sources.redhat.com Subject: Re: [PATCH] Outwit compiler dead code elimination in break.exp test (revised patch) References: <20031208042046.EF94D4B412@berman.michael-chastain.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00268.txt.bz2 > --- > > break.c and break1.c need copyright notices. > Andrew C can provide a list of years for break.c, > covering the time before it was moved to sourceware. Fred, in case you're wondering, one of the Red Hat chores is to, on demand, track down the pre-history of files with no copyright status. The history: gdb/testsuite/gdb.base/break.c: date: 2003/11/13 15:34:39; author: ezannoni; state: Exp; lines: +14 -14 date: 2002/01/07 19:21:26; author: law; state: Exp; lines: +52 -2 date: 1999/04/16 01:34:30; author: shebs; state: Exp; The "pre-history": gdb/testsuite/gdb.base/break.c: date: 1999/10/02 00:24:35; author: kevinb; state: Exp; lines: +2 -1 date: 1999/09/08 18:18:56; author: shebs; state: Exp; lines: +1 -1 date: 1999/06/25 23:44:28; author: shebs; state: Exp; lines: +19 -0 date: 1995/04/17 19:55:19; author: kingdon; state: Exp; lines: +2 -2 date: 1995/03/24 22:06:03; author: kung; state: Exp; lines: +4 -0 date: 1995/03/16 00:06:48; author: grossman; state: Exp; lines: +3 -3 date: 1994/06/07 01:56:04; author: shebs; state: Exp; gdb/testsuite/gdb.t06/gdbme.c (yep!): date: 1994/06/07 22:51:18; author: shebs; state: dead; lines: +0 -0 date: 1993/02/25 18:51:37; author: ian; state: Exp; gdb/testsuite/gdb.t06/in-gdb.c (I kid you not!): date: 1993/02/25 18:51:38; author: ian; state: dead; lines: +0 -0 date: 1993/02/21 20:01:14; author: mtw; state: Exp; * gdb/testsuite: Initial creation of gdb/testsuite. Migrated dejagnu testcases and support files for testing nm to gdb/testsuite from deja-gnu. These files were moved "as is" with no modifications. This migration is part of a major overhaul of dejagnu. The modifications to these testcases, etc., which will allow them to work with the new version of dejagnu will be made in a future update. deja-gnu/deja-gnu/gdb.t06/in-gdbme.c (I kid you not!): date: 1993/10/14 00:10:57; author: rich; state: dead; lines: +0 -0 date: 1992/11/04 22:31:42; author: ian; state: Exp; lines: +13 -0 date: 1992/10/23 18:57:46; author: ian; state: Exp; lines: +18 -4 date: 1992/08/09 05:03:10; author: rob; state: Exp; lines: +6 -1 date: 1992/07/18 03:22:58; author: rob; state: Exp; So not a bad list of copyright years! Andrew PS: In case no one believes me, this is the original code: #include /* * The following functions do nothing useful. They are included simply * as places to try setting breakpoints at. They are explicitly * "one-line functions" to verify that this case works (some versions * of gcc have or have had problems with this). */ int marker1 () { return (0); } int marker2 (a) int a; { return (1); } void marker3 (a, b) char *a, *b; {} void marker4 (d) long d; {} /* * This simple classical example of recursion is useful for * testing stack backtraces and such. */ main (argc, argv, envp) int argc; char *argv[], **envp; { if (argc != 2) { fprintf (stderr, "usage: factorial \n"); exit (1); } else { printf ("%d\n", factorial (atoi (argv[1]))); } marker1 (); marker2 (43); marker3 ("stack", "trace"); marker4 (177601976L); exit (0); } int factorial (value) int value; { if (value > 1) { value *= factorial (value - 1); } return (value); }