aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-ocd.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-01-19 02:13:06 +0000
committerStan Shebs <shebs@codesourcery.com>1999-01-19 02:13:06 +0000
commitab0e22180ab6e94ec2e4562cac1191436410cc03 (patch)
tree43768c92c85af5ab70d4018051178fd4bc64e9fd /gdb/ser-ocd.c
parent8a7dfaa090dc378831100692f4ce92f3244259ef (diff)
downloadgdb-ab0e22180ab6e94ec2e4562cac1191436410cc03.zip
gdb-ab0e22180ab6e94ec2e4562cac1191436410cc03.tar.gz
gdb-ab0e22180ab6e94ec2e4562cac1191436410cc03.tar.bz2
* ser-ocd.c (ocd_open): Handle Unix case gracefully.
fixes bug reported on ecos-discuss
Diffstat (limited to 'gdb/ser-ocd.c')
-rw-r--r--gdb/ser-ocd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ser-ocd.c b/gdb/ser-ocd.c
index 7ef1796..971f84e 100644
--- a/gdb/ser-ocd.c
+++ b/gdb/ser-ocd.c
@@ -62,8 +62,10 @@ ocd_open (scb, name)
if (dll_do_command == NULL)
error ("Can't find do_command function in Wigglers.dll");
}
-#endif
-
+#else
+ /* No wiggler DLLs on Unix yet, fail. */
+ error ("Wiggler library not available for this type of host.");
+#endif /* _WIN32 */
return 0;
}