diff options
author | Pedro Alves <palves@redhat.com> | 2014-09-16 12:37:03 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-09-16 12:37:03 +0100 |
commit | 428b16bd5a3947e3a608f0c6751a8be7dbd88959 (patch) | |
tree | 7249fef5be6770ae9d594ff815e8c0e426a480d3 /gdb/testsuite/gdb.reverse/until-reverse.c | |
parent | 666d413cc37ef7f841abf3e8faf2c3cbc7c5b456 (diff) | |
download | gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.zip gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.tar.gz gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.tar.bz2 |
Remove support for testing against dead "target vxworks"
"target vxworks" and friends have been removed 10 years ago already:
commit e84ecc995d6a5e4e9114d3cea61717b8a573afb6
Author: Andrew Cagney <cagney@redhat.com>
AuthorDate: Sat Nov 13 23:10:02 2004 +0000
2004-11-13 Andrew Cagney <cagney@gnu.org>
* configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
sparc-*-vxworks*.
* NEWS: Mention that vxworks was deleted.
(...)
* remote-vxmips.c, remote-vx.c: Delete.
* remote-vx68.c: Delete.
(...)
This removes related leftover cruft from the testsuite.
Tested on x86_64 Fedora 20, native and gdbserver.
gdb/testsuite/
2014-09-16 Pedro Alves <palves@redhat.com>
* config/vx.exp, config/vxworks.exp, config/vxworks29k.exp: Delete
files.
* gdb.base/a2-run.exp: Remove all code guarded by istarget
"*-*-vxworks*" throughout.
* gdb.base/break.exp: Likewise.
* gdb.base/default.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/break.c: Remove all code guarded by #ifdef vxworks
throughout.
* gdb.base/run.c: Likewise.
* gdb.base/sepdebug.c: Likewise.
* gdb.hp/gdb.aCC/run.c: Likewise.
* gdb.reverse/until-reverse.c: Likewise.
* lib/gdb.exp (gdb_compile): Remove is_vxworks branch.
Diffstat (limited to 'gdb/testsuite/gdb.reverse/until-reverse.c')
-rw-r--r-- | gdb/testsuite/gdb.reverse/until-reverse.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/gdb/testsuite/gdb.reverse/until-reverse.c b/gdb/testsuite/gdb.reverse/until-reverse.c index 15cfa8d..28c71b2 100644 --- a/gdb/testsuite/gdb.reverse/until-reverse.c +++ b/gdb/testsuite/gdb.reverse/until-reverse.c @@ -15,39 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifdef vxworks - -# include <stdio.h> - -/* VxWorks does not supply atoi. */ -static int -atoi (z) - char *z; -{ - int i = 0; - - while (*z >= '0' && *z <= '9') - i = i * 10 + (*z++ - '0'); - return i; -} - -/* I don't know of any way to pass an array to VxWorks. This function - can be called directly from gdb. */ - -vxmain (arg) -char *arg; -{ - char *argv[2]; - - argv[0] = ""; - argv[1] = arg; - main (2, argv, (char **) 0); -} - -#else /* ! vxworks */ -# include <stdio.h> -# include <stdlib.h> -#endif /* ! vxworks */ +#include <stdio.h> +#include <stdlib.h> #ifdef PROTOTYPES extern int marker1 (void); |