diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-12-11 16:21:09 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-12-11 16:21:09 +0000 |
commit | f1637ebed142eabd96cbc009edda8ec903c71fd6 (patch) | |
tree | 273de5960c7fb044b02f8d4e41538c4814951762 | |
parent | db91f50261d30e66350281d18759aa7490672a34 (diff) | |
download | gdb-f1637ebed142eabd96cbc009edda8ec903c71fd6.zip gdb-f1637ebed142eabd96cbc009edda8ec903c71fd6.tar.gz gdb-f1637ebed142eabd96cbc009edda8ec903c71fd6.tar.bz2 |
Remove gdb.base/coremaker2.c
I happen to find that coremaker2.c isn't used in the testsuite (if I
don't miss anything). I don't believe it until I see this ChangeLog
entry,
1999-11-18 Fred Fish <fnf@cygnus.com>
* gdb.base/coremaker2.c: Add sample program for generating
cores that is more self contained than coremaker.c. Eventually
I'll add more code to this and tie it into the testsuite.
looks Fred didn't "tie it into testsuite" later.
gdb/testsuite:
2015-12-11 Yao Qi <yao.qi@linaro.org>
* gdb.base/coremaker2.c: Remove.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/coremaker2.c | 75 |
2 files changed, 4 insertions, 75 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ab7a324..7e9aead 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-12-11 Yao Qi <yao.qi@linaro.org> + + * gdb.base/coremaker2.c: Remove. + 2015-12-10 Pedro Alves <palves@redhat.com> * gdb.multi/base.exp: Remove stale "spaces" references. diff --git a/gdb/testsuite/gdb.base/coremaker2.c b/gdb/testsuite/gdb.base/coremaker2.c deleted file mode 100644 index 067c01b..0000000 --- a/gdb/testsuite/gdb.base/coremaker2.c +++ /dev/null @@ -1,75 +0,0 @@ -/* Copyright 1992-2015 Free Software Foundation, Inc. - - This file is part of GDB. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. */ - -/* Simple little program that just generates a core dump from inside some - nested function calls. Keep this as self contained as possible, I.E. - use no environment resources other than possibly abort(). */ - -#ifndef __STDC__ -#define const /**/ -#endif - -#ifndef HAVE_ABORT -#define HAVE_ABORT 1 -#endif - -#if HAVE_ABORT -#define ABORT abort() -#else -#define ABORT {char *invalid = 0; *invalid = 0xFF;} -#endif - -/* Don't make these automatic vars or we will have to walk back up the - stack to access them. */ - -char *buf1; -char *buf2; - -int coremaker_data = 1; /* In Data section */ -int coremaker_bss; /* In BSS section */ - -const int coremaker_ro = 201; /* In Read-Only Data section */ - -void -func2 (int x) -{ - int coremaker_local[5]; - int i; - static int y; - - /* Make sure that coremaker_local doesn't get optimized away. */ - for (i = 0; i < 5; i++) - coremaker_local[i] = i; - coremaker_bss = 0; - for (i = 0; i < 5; i++) - coremaker_bss += coremaker_local[i]; - coremaker_data = coremaker_ro + 1; - y = 10 * x; - ABORT; -} - -void -func1 (int x) -{ - func2 (x * 2); -} - -int main () -{ - func1 (10); - return 0; -} |