This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Outwit compiler dead code elimination in break.exp test(revised patch)



---

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 <stdio.h>

/*
 * 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 <number>\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);
}



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]