aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-03-15 21:07:10 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-03-15 21:07:10 +0000
commitb1dda26e87e0d020b2350b8320b9c0362faf48fc (patch)
tree90611845ea5345faeefc3e2e8581ed305f8d313b
parente5926c4a4cb15ecd3108c9f450e1c0a3fdb9db46 (diff)
downloadgdb-b1dda26e87e0d020b2350b8320b9c0362faf48fc.zip
gdb-b1dda26e87e0d020b2350b8320b9c0362faf48fc.tar.gz
gdb-b1dda26e87e0d020b2350b8320b9c0362faf48fc.tar.bz2
* nlm/gdbserve.c (main): Add support for processing BOARD=
argument, deprecate NODE=.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nlm/gdbserve.c13
2 files changed, 18 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bfc9b89..eaf7082 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Wed Mar 15 12:22:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
+
+ * nlm/gdbserve.c (main): Add support for processing BOARD=
+ argument, deprecate NODE=.
+
Wed Mar 15 10:58:26 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
* c-exp.y (yylex): Make an empty character constant an error.
diff --git a/gdb/nlm/gdbserve.c b/gdb/nlm/gdbserve.c
index 1ad1c08..4d990d8 100644
--- a/gdb/nlm/gdbserve.c
+++ b/gdb/nlm/gdbserve.c
@@ -862,6 +862,18 @@ main (argc, argv)
exit (1);
}
}
+ else if (strnicmp(*argv, "BOARD=", 6) == 0)
+ {
+ bp = *argv + 6;
+ board = strtol (bp, &ep, 0);
+ if (ep == bp || *ep != '\0')
+ {
+ fprintf (stderr, "%s: %s: expected integer argument\n",
+ progname, bp);
+ exit(1);
+ }
+ }
+#if 1 /* FIXME: this option has been depricated */
else if (strnicmp(*argv, "NODE=", 5) == 0)
{
bp = *argv + 5;
@@ -873,6 +885,7 @@ main (argc, argv)
exit(1);
}
}
+#endif
else if (strnicmp(*argv, "PORT=", 5) == 0)
{
bp = *argv + 5;