From: Stan Shebs Date: Tue, 19 Jan 1999 02:13:06 +0000 (+0000) Subject: * ser-ocd.c (ocd_open): Handle Unix case gracefully. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab0e22180ab6e94ec2e4562cac1191436410cc03;p=binutils-gdb.git * ser-ocd.c (ocd_open): Handle Unix case gracefully. fixes bug reported on ecos-discuss --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a3f7237eba3..0735ccdbe94 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Mon Jan 18 16:40:50 1999 Stan Shebs + * ser-ocd.c (ocd_open): Handle Unix case gracefully. + * target.c (dummy_target): Don't initialize statically. (init_dummy_target): New function, fills in dummy_target. (initialize_targets): Use it. diff --git a/gdb/ser-ocd.c b/gdb/ser-ocd.c index 7ef17967c4d..971f84e049c 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; }