OSDN Git Service

Enable to track git://github.com/monaka/binutils.git
[pf3gnuchains/pf3gnuchains3x.git] / rda / include / gdbserv-output.h
diff --git a/rda/include/gdbserv-output.h b/rda/include/gdbserv-output.h
new file mode 100644 (file)
index 0000000..df3cf9f
--- /dev/null
@@ -0,0 +1,50 @@
+/* gdbserv-output.h
+
+   Copyright 1998, 2002 Red Hat, Inc.
+
+   This file is part of RDA, the Red Hat Debug Agent (and library).
+
+   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 2 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, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.
+   
+   Alternative licenses for RDA may be arranged by contacting Red Hat,
+   Inc.  */
+
+#ifdef __cplusplus
+extern "C" {
+#elif 0
+}
+#endif
+
+struct gdbserv;
+
+struct gdbserv_output {
+  
+  /* serial data */
+  int len;
+  char buf[2048];
+  /* additional space incase the checksum overflows the buf */
+  char padding_for_checksum[3];
+};
+
+void gdbserv_output_attach (struct gdbserv *gdbserv);
+void gdbserv_output_detach (struct gdbserv *gdbserv);
+
+void gdbserv_output_packet (struct gdbserv *gdbserv);
+void gdbserv_output_discard (struct gdbserv *gdbserv);
+
+#ifdef __cplusplus
+}
+#endif