]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove support for testing against dead "target vxworks"
authorPedro Alves <palves@redhat.com>
Tue, 16 Sep 2014 11:37:03 +0000 (12:37 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 16 Sep 2014 11:37:03 +0000 (12:37 +0100)
"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.

15 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/config/vx.exp [deleted file]
gdb/testsuite/config/vxworks.exp [deleted file]
gdb/testsuite/config/vxworks29k.exp [deleted file]
gdb/testsuite/gdb.base/a2-run.exp
gdb/testsuite/gdb.base/break.c
gdb/testsuite/gdb.base/break.exp
gdb/testsuite/gdb.base/default.exp
gdb/testsuite/gdb.base/run.c
gdb/testsuite/gdb.base/scope.exp
gdb/testsuite/gdb.base/sepdebug.c
gdb/testsuite/gdb.base/sepdebug.exp
gdb/testsuite/gdb.hp/gdb.aCC/run.c
gdb/testsuite/gdb.reverse/until-reverse.c
gdb/testsuite/lib/gdb.exp

index 2ee3067eb618068b133e3d0ac6678b68cd29b1fe..361c81954625ad33c812c90ffc7849936b6e32d9 100644 (file)
@@ -1,3 +1,21 @@
+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.
+
 2014-09-16  Yao Qi  <yao@codesourcery.com>
 
        * boards/local-remote-host-native.exp: New file.
diff --git a/gdb/testsuite/config/vx.exp b/gdb/testsuite/config/vx.exp
deleted file mode 100644 (file)
index 7603490..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#   Copyright 1988-2014 Free Software Foundation, Inc.
-
-# 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/>.
-
-# This file was written by Rob Savoye. (rob@cygnus.com)
-
-#
-# load support libraries
-#
-load_lib remote.exp
-load_lib gdb.exp
-
-set shell_prompt "->"
-set gdb_prompt "\\(vxgdb\\)"
-
-#
-# gdb_version -- extract and print the version number of gcc
-#
-proc gdb_version {} {
-    default_gdb_version
-}
-
-#
-# gdb_load -- load a file into the debugger.
-# We have to stop and start gdb each time we do this, because when
-# vxgdb loads two files in a row, the symbols in the first file loaded
-# take precedence. Returns -1 on error, else 0.
-#
-proc gdb_load { arg } {
-    set result 0
-
-    if { [remote_ld target $arg] != 0 } {
-       perror "Couldn't load $arg"
-       return -1
-    }
-
-    return [gdb_file_cmd $arg]
-}
-
-#
-# gdb_start -- start gdb running
-#
-proc gdb_start { } {
-    global gdb_prompt
-    global verbose
-    global connectmode
-    global reboot
-
-    # get a connection to the board
-    for { set x 0 } { $x < 3 } { incr x } {
-       set shell_id [remote_open target]
-       if { $shell_id > 0 } {
-           verbose "Spawn id for remote shell is $shell_id"
-
-           set timeout 10
-           verbose "Timeout is now $timeout seconds" 2
-
-           set state [spawn_vxgdb]
-           if { $state == "pass" } {
-               return 0
-           }
-           if { $state == "fail" } {
-               return -1
-           }
-       }
-       remote_reboot target
-    }
-}
-
-proc spawn_vxgdb { } {
-    global gdb_prompt
-
-    default_gdb_start
-
-    # set the default arguments to "main", so that "run" with no
-    # arguments will work correctly.
-    send_gdb "set args main\n"
-    gdb_expect -re ".*$gdb_prompt $" {}
-
-    verbose "Setting up target, Please wait..."
-    # set targets hostname
-    send_gdb "target vxworks [target_info hostname]\n"
-    set timeout 60
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect {
-       -re "Done\..*$gdb_prompt $"     {
-           verbose "Set target to [target_info hostname]" 1
-           set timeout 10
-           return "pass"
-       }
-       -re "net_connect: RPC: (Program not registered|.*Timed out).*$" {
-           warning "Couldn't set GDB to target [target_info netport]."
-       }
-       timeout {
-           warning "Couldn't set target for vxworks."
-       }
-    }
-    return "retry"
-}
-
-proc gdb_exit { } {
-    remote_close target
-    catch default_gdb_exit
-}
-
-#expect_after {
-#    "<return>"                   { send "\n"; perror "Window too small." }
-#    -re "\(y or n\) "            { send "n\n"; perror "Got interactive prompt." }
-#    buffer_full                  { perror "internal buffer is full." }
-#    eof                          { perror "eof -- pty is hosed." }
-#    timeout                      { perror "timeout." }
-#    "virtual memory exhausted" { perror "virtual memory exhausted." }
-#    "Undefined command"          { perror "send string probably wrong." }
-#}
-
diff --git a/gdb/testsuite/config/vxworks.exp b/gdb/testsuite/config/vxworks.exp
deleted file mode 100644 (file)
index 09209ec..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#   Copyright 1997-2014 Free Software Foundation, Inc.
-
-# 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/>.
-
-load_lib ../config/vx.exp
diff --git a/gdb/testsuite/config/vxworks29k.exp b/gdb/testsuite/config/vxworks29k.exp
deleted file mode 100644 (file)
index 604ff0d..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#   Copyright 1995-2014 Free Software Foundation, Inc.
-
-# 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/>.
-
-# This file was written by Brendan Kehoe (brendan@cygnus.com).
-
-# We need this file here because the targetname for the 29k board
-# is `vxworks29k', not `vxworks'.  That way other tools (e.g., gcc)
-# can differentiate between the stuff run on that board and others.
-
-verbose "Loading ${srcdir}/config/vx.exp"
-source ${srcdir}/config/vx.exp
index 10aaf670013ea43507e6501ebf5d5ec4f72738ab..fc8760298c4b481eefffaaf5798180481c47f127 100644 (file)
@@ -31,31 +31,26 @@ if { [prepare_for_testing ${testfile}.exp $testfile $srcfile] } {
 }
 
 # Run with no arguments.
-# On VxWorks this justs make sure the program was run.
 gdb_run_cmd
 
 set test "run \"$testfile\" with no args"
 
-if [istarget "*-*-vxworks*"] then {
-    gdb_test "" "usage:  factorial <number>.*" $test
-} else {
-    gdb_test_multiple "" $test {
-       -re ".*usage:  factorial <number>.*$inferior_exited_re with code 01.\r\n$gdb_prompt $" {
-           pass $test
-           pass "no spurious messages at program exit"
-       }
-       -re ".*usage:  factorial <number>.*$inferior_exited_re with code 01.*$gdb_prompt $" {
-           pass $test
-           fail "no spurious messages at program exit"
-       }
-       -re ".*usage:  factorial <number>.* EXIT code 1.*$inferior_exited_re normally.\r\n$gdb_prompt $" {
-           pass "$test (exit wrapper)"
-           pass "no spurious messages at program exit"
-       }
-       -re ".*usage:  factorial <number>.* EXIT code 1.*$inferior_exited_re normally.*$gdb_prompt $" {
-           pass "$test (exit wrapper)"
-           fail "no spurious messages at program exit"
-       }
+gdb_test_multiple "" $test {
+    -re ".*usage:  factorial <number>.*$inferior_exited_re with code 01.\r\n$gdb_prompt $" {
+       pass $test
+       pass "no spurious messages at program exit"
+    }
+    -re ".*usage:  factorial <number>.*$inferior_exited_re with code 01.*$gdb_prompt $" {
+       pass $test
+       fail "no spurious messages at program exit"
+    }
+    -re ".*usage:  factorial <number>.* EXIT code 1.*$inferior_exited_re normally.\r\n$gdb_prompt $" {
+       pass "$test (exit wrapper)"
+       pass "no spurious messages at program exit"
+    }
+    -re ".*usage:  factorial <number>.* EXIT code 1.*$inferior_exited_re normally.*$gdb_prompt $" {
+       pass "$test (exit wrapper)"
+       fail "no spurious messages at program exit"
     }
 }
 
@@ -67,112 +62,30 @@ if [target_info exists noargs] then {
 }
 
 # Now run with some arguments
-if [istarget "*-*-vxworks*"] then {
-    send_gdb "run vxmain \"5\"\n"
-    gdb_expect -re "run vxmain \"5\"\r\n" {}
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect {
-        "$inferior_exited_re normally" {
-           unresolved "run \"$testfile\" with arg"
-       }
-        "120" {
-           pass "run \"$testfile\" with arg"
-       }
-       timeout {
-           fail "(timeout) run \"$testfile\" with arg"
-       }
-    }
-    set timeout 10
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect -re "$gdb_prompt $" {}
-} else {
-    setup_xfail "arm-*-coff"
-    gdb_run_cmd 5
-    gdb_test "" "120.*" "run \"$testfile\" with arg"
-}
+setup_xfail "arm-*-coff"
+gdb_run_cmd 5
+gdb_test "" "120.*" "run \"$testfile\" with arg"
 
 # Run again with same arguments.
 gdb_run_cmd
 
-if [istarget "*-*-vxworks*"] then {
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect {
-        "$inferior_exited_re normally" {
-           unresolved "run \"$testfile\" again with same args"
-       }
-        "120" { pass "run \"$testfile\" again with same args" }
-       timeout { fail "(timeout) run \"$testfile\" again with same args" }
-    }
-    set timeout 10
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect -re "$gdb_prompt $" {}
-} else {
-    setup_xfail "arm-*-coff"
-    gdb_test "" "120.*" "run \"$testfile\" again with same args"
-}
+setup_xfail "arm-*-coff"
+gdb_test "" "120.*" "run \"$testfile\" again with same args"
 
 # Use "set args" command to specify no arguments as default and run again.
-if [istarget "*-*-vxworks*"] then {
-    gdb_test_no_output "set args main"
-} else {
-    gdb_test_no_output "set args"
-}
+gdb_test_no_output "set args"
 
 gdb_run_cmd
 
-if [istarget "*-*-vxworks*"] then {
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect {
-        "$inferior_exited_re normally" {
-           unresolved "run after setting args to nil"
-       }
-        "usage:  factorial <number>" {
-           pass "run after setting args to nil"
-       }
-       timeout {
-           fail "(timeout) run after setting args to nil"
-       }
-    }
-    set timeout 10
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect -re "$gdb_prompt $" {}
-} else {
-    gdb_test "" "usage:  factorial <number>.*" "run after setting args to nil"
-}
+gdb_test "" "usage:  factorial <number>.*" "run after setting args to nil"
 
 # Use "set args" command to specify an argument and run again.
-if [istarget "*-*-vxworks*"] then {
-    gdb_test_no_output "set args vxmain \"6\""
-} else {
-    gdb_test_no_output "set args 6"
-}
+gdb_test_no_output "set args 6"
 
 gdb_run_cmd
 
-if [istarget "*-*-vxworks*"] then {
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect {
-        "$inferior_exited_re normally" {
-           unresolved "run \"$testfile\" again after setting args"
-       }
-        "720" {
-           pass "run \"$testfile\" again after setting args"
-       }
-       timeout {
-           fail "(timeout) run \"$testfile\" again after setting args"
-       }
-    }
-    set timeout 10
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_expect -re "$gdb_prompt $" {}
-} else {
-    setup_xfail "arm-*-coff"
-    gdb_test "" "720.*" "run \"$testfile\" again after setting args"
-}
+setup_xfail "arm-*-coff"
+gdb_test "" "720.*" "run \"$testfile\" again after setting args"
 
 # GOAL: Test that shell is being used with "run".  For remote debugging
 # targets, there is no guarantee that a "shell" (whatever that is) is used.
@@ -181,8 +94,3 @@ if ![is_remote target] then {
        "Starting program.*40320.*" \
        "run \"$testfile\" with shell"
 }
-
-# Reset the default arguments for VxWorks
-if [istarget "*-*-vxworks*"] then {
-    gdb_test_no_output "set args main"
-}
index 834720ab3a35b0c15ac1303a5d0077cc5fbb43d4..0fd8f44fa77b8b58ba27153b3d466946c28a3cfd 100644 (file)
    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);
index 1870ad563bcb7113a3597abeebf7cfdd742a94d5..af4dbda8f96c4655651f2057ca939e3a791905aa 100644 (file)
@@ -949,10 +949,3 @@ gdb_test_no_output "set \$foo=81.5" \
 gdb_test "break $srcfile:\$foo" \
     "Convenience variables used in line specs must have integer values.*" \
     "set breakpoint via non-integer convenience variable disallowed"
-
-# Reset the default arguments for VxWorks
-if [istarget "*-*-vxworks*"] {
-    set timeout 10
-    verbose "Timeout is now $timeout seconds" 2
-    gdb_test_no_output "set args main"
-}
index ab74bdbadbefb0264190a1d9d2a94ab08c7aad82..c155bb940be24bd8ea9792dadf1fd19bea3b6b89 100644 (file)
@@ -412,14 +412,6 @@ gdb_test "pwd" "Working directory .*" "pwd"
 #test run "r" abbreviation
 if $use_gdb_stub {
     # Only extended-remote supports "run".
-} elseif [istarget "*-*-vxworks*"] then {
-    gdb_test "set args" ".*" "" 
-
-    gdb_test "r" "Starting program: .*
-You must specify a function name to run, and arguments if any"\
-               "run \"r\" abbreviation"
-    gdb_test "set args main" ".*" "" 
-
 } else {
     gdb_test_multiple "r" "run \"r\" abbreviation" {
        -re "Starting program:  .*You can't do that when your target is `None'.*$gdb_prompt $"\
@@ -442,13 +434,6 @@ You must specify a function name to run, and arguments if any"\
 #test run
 if $use_gdb_stub {
     # Only extended-remote supports "run".
-} elseif [istarget "*-*-vxworks*"] then {
-    gdb_test "set args" ".*" "" 
-
-    gdb_test "run" "Starting program: .*
-You must specify a function name to run, and arguments if any"
-    gdb_test "set args main" ".*" "" 
-
 } else {
     gdb_test_multiple "run" "run" {
        -re "Starting program:.*You can't do that when your target is `None'.*$gdb_prompt $"\
index c7293ced2db58bfb07ba489d657d41cd811c8b27..df540560f262b3a11a6a780c6a955970baffa721 100644 (file)
@@ -3,39 +3,8 @@
  *     testing stack backtraces and such.
  */
 
-#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
 int factorial (int);
index 769df73a3cc2c0e4d816dccaba64b42434d4a037..249c6a32ffc10b1f483c3cef38aa63cae351925e 100644 (file)
@@ -499,11 +499,6 @@ proc test_at_localscopes {} {
     gdb_stop_suppressing_tests
 }
 
-if [istarget "*-*-vxworks*"] {
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-}
-
 # Test that variables in various segments print out correctly before
 # the program is run.  
 
@@ -536,8 +531,3 @@ if [runto foo] then { test_at_foo }
 if [runto bar] then { test_at_bar }
 if [runto localscopes] then { test_at_localscopes }
 if [runto autovars] then { test_at_autovars }
-
-if [istarget "*-*-vxworks*"] {
-    set timeout 120
-    verbose "Timeout is now $timeout seconds" 2
-}
index 671dfa5ee0e2033eb02a40f26c5960203d694db9..21e62001cbabe416953a352754cc8ec4fe690711 100644 (file)
    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>
 
 /*
  * The following functions do nothing useful.  They are included simply
index c5e019be3f6c48251cbb7ab74203ca1c42b61571..b1ca433f420075b84e641e9925abdca2937eee02 100644 (file)
@@ -713,14 +713,6 @@ proc test_different_dir {type test_different_dir xfail} {
            }
        }
 
-
-       # Reset the default arguments for VxWorks
-       if [istarget "*-*-vxworks*"] {
-           set timeout 10
-           verbose "Timeout is now $timeout seconds" 2
-           gdb_test_no_output "set args main"
-       }
-
        # proc test_different_dir
     }
 }
index b41abab0aac753deb4b123a20e2e914fa98261fd..60cc08e0d65bff037ca886d0c4e0b11c7bfb20ee 100644 (file)
@@ -3,39 +3,8 @@
  *     testing stack backtraces and such.
  */
 
-#ifdef vxworks
-
-#  include <stdio.h>
-
-/* VxWorks does not supply atoi.  */
-static int
-atoi (char *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.  */
-
-void vxmain (char *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>
 
 int main (int argc, char *argv[], char **envp)
 /*int argc;
index 15cfa8d84d84a20f40bd14807efc828f0a131c2f..28c71b200c858871392fe8ed2dde01b2c6656d83 100644 (file)
    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);
index b33a70230b328abfc00059d8d2538fe8e03f1557..47dc27b3ef530342c34b5f337c03e5bcee1f77b2 100644 (file)
@@ -2809,10 +2809,6 @@ proc gdb_compile {source dest type options} {
     }
     set options $new_options
 
-    if [target_info exists is_vxworks] {
-       set options2 { "additional_flags=-Dvxworks" }
-       set options [concat $options2 $options]
-    }
     if [info exists GDB_TESTCASE_OPTIONS] {
        lappend options "additional_flags=$GDB_TESTCASE_OPTIONS"
     }