OSDN Git Service

2002-11-19 Michael Snyder <msnyder@redhat.com>
[pf3gnuchains/pf3gnuchains3x.git] / rda / include / gdbserv-output.h
1 /* gdbserv-output.h
2
3    Copyright 1998, 2002 Red Hat, Inc.
4
5    This file is part of RDA, the Red Hat Debug Agent (and library).
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 59 Temple Place - Suite 330,
20    Boston, MA 02111-1307, USA.
21    
22    Alternative licenses for RDA may be arranged by contacting Red Hat,
23    Inc.  */
24
25 #ifdef __cplusplus
26 extern "C" {
27 #elif 0
28 }
29 #endif
30
31 struct gdbserv;
32
33 struct gdbserv_output {
34   
35   /* serial data */
36   int len;
37   char buf[2048];
38   /* additional space incase the checksum overflows the buf */
39   char padding_for_checksum[3];
40 };
41
42 void gdbserv_output_attach (struct gdbserv *gdbserv);
43 void gdbserv_output_detach (struct gdbserv *gdbserv);
44
45 void gdbserv_output_packet (struct gdbserv *gdbserv);
46 void gdbserv_output_discard (struct gdbserv *gdbserv);
47
48 #ifdef __cplusplus
49 }
50 #endif