aboutsummaryrefslogtreecommitdiff
path: root/gdb/nlm/fake_aio.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-08-18 06:32:55 +0000
committerStu Grossman <grossman@cygnus>1994-08-18 06:32:55 +0000
commitb7da24943dbe07851c083336f4c352e6e2e41d74 (patch)
treea4e317f709103fd5840b842e74f8a6aee753e05d /gdb/nlm/fake_aio.c
parent8c074d7ada27e4eecda9fa92c79e5bc5cf23f77b (diff)
downloadgdb-b7da24943dbe07851c083336f4c352e6e2e41d74.zip
gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.gz
gdb-b7da24943dbe07851c083336f4c352e6e2e41d74.tar.bz2
* Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target. * configure.in (powerpc-*-netware*): Automatically configure nlm subdir. * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha specific stuff. Make things more configurable. * nlm/configure.in: Add powerpc-*-netware* target. Use gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h files. * nlm/gdbserve.c: Move Alpha specific stuff into other files. Remove lots of architecture-specific stuff. * nlm/gdbserve.def: Add new imports. * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code. * nlm/prelude.c: Don't include libhooks.h, get rid of call to register library. * nlm/prelude.o: What was this doing here?
Diffstat (limited to 'gdb/nlm/fake_aio.c')
-rw-r--r--gdb/nlm/fake_aio.c76
1 files changed, 76 insertions, 0 deletions
diff --git a/gdb/nlm/fake_aio.c b/gdb/nlm/fake_aio.c
new file mode 100644
index 0000000..91cc7d5
--- /dev/null
+++ b/gdb/nlm/fake_aio.c
@@ -0,0 +1,76 @@
+#include <nwtypes.h>
+#include <errno.h>
+#include <stdio.h>
+#include <aio.h>
+
+#define CONST const
+
+/* This file provides stubs and equivalent interfaces for all functions that
+ the debugger stub needs, but aren't yet implemented. */
+
+int
+AIOReadData (int portHandle, char *buffer, LONG length, LONG *numberBytesRead)
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOWriteData (int portHandle, char *buffer, LONG length,
+ LONG *numberBytesWritten)
+
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOAcquirePort (int *hardwareType, int *boardNumber, int *portNumber,
+ int *portHandle)
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOConfigurePort (int portHandle, BYTE bitRate, BYTE dataBits, BYTE stopBits,
+ BYTE parityMode, BYTE flowCtrlMode)
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOGetPortConfiguration (int portHandle, AIOPORTCONFIG *pPortConfig,
+ AIODVRCONFIG *pDvrConfig)
+{
+ fprintf (stderr, "AIOGetPortConfiguration stubbed out\n");
+ exit (1);
+}
+
+int
+AIOReleasePort (int portHandle)
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOSetExternalControl (int portHandle, int requestType, int requestValue)
+{
+ return AIO_SUCCESS;
+}
+
+int
+AIOGetExternalStatus (int portHandle, LONG *extStatus, LONG *chgdExtStatus)
+{
+ fprintf (stderr, "AIOGetExternalStatus stubbed out\n");
+ exit (1);
+}
+
+void
+StopBell ()
+{
+}
+
+int
+Breakpoint (int __arg)
+{
+ fprintf (stderr, "Breakpoint() stubbed out\n");
+ exit (1);
+}