OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / component / gdb / gdbserv-state.h
1 /*
2  * gdbserv-state.h -- part of GDB remote server.
3  *
4  * Copyright (C) 2000 Red Hat.
5  * This file is part of SID and is licensed under the GPL.
6  * See the file COPYING.SID for conditions for redistribution.
7  */
8
9 #include "gdbserv-input.h"
10 #include "gdbserv-output.h"
11 #include "gdbserv-client.h"
12 #include "gdbserv-target.h"
13
14 enum gdbserv_state {
15   GDBSERV_STATE_UNINITIALIZED = 0,
16   GDBSERV_STATE_RESETTING,
17   GDBSERV_STATE_STUMBLING,
18   GDBSERV_STATE_STEPPING,
19   GDBSERV_STATE_RUNNING,
20   GDBSERV_STATE_BROKEN,
21   GDBSERV_STATE_EXITING,
22   GDBSERV_STATE_EXITED,
23 };
24
25 struct gdbserv {
26
27   struct gdbserv_input input;
28   struct gdbserv_output output;
29   struct gdbserv_target *target;
30   struct gdbserv_client *client;
31
32   enum gdbserv_state state;
33
34   /* argv */
35   char **program_argv;
36   unsigned long program_argc;
37   unsigned long last_arg_len;
38   unsigned long last_arg_num;
39   
40 };
41
42
43 /* Present an unpacked packet to the gdbserv state machine */
44 void gdbserv_data_packet (struct gdbserv *gdbserv);