]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/gdbserver/server.h
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / gdb / gdbserver / server.h
CommitLineData
c906108c
SS
1/* Common definitions for remote server for GDB.
2 Copyright (C) 1993 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#include "defs.h"
21#include <setjmp.h>
22
23/* Target-specific functions */
24
25int create_inferior PARAMS ((char *program, char **allargs));
26void kill_inferior PARAMS ((void));
27void fetch_inferior_registers PARAMS ((int regno));
28void store_inferior_registers PARAMS ((int regno));
29int mythread_alive PARAMS ((int pid));
30void myresume PARAMS ((int step, int signo));
31unsigned char mywait PARAMS ((char *status));
32void read_inferior_memory PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
33int write_inferior_memory PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
34int create_inferior ();
35
36/* Target-specific variables */
37
38extern char registers[];
39
40/* Public variables in server.c */
41
42extern int cont_thread;
43extern int general_thread;
44extern int thread_from_wait;
45extern int old_thread_from_wait;
46
47extern jmp_buf toplevel;
48extern int inferior_pid;
49
50/* Functions from remote-utils.c */
51
52int putpkt PARAMS ((char *buf));
53int getpkt PARAMS ((char *buf));
54void remote_open PARAMS ((char *name));
55void remote_close PARAMS ((void));
56void write_ok PARAMS ((char *buf));
57void write_enn PARAMS ((char *buf));
58void enable_async_io PARAMS ((void));
59void disable_async_io PARAMS ((void));
60void convert_ascii_to_int PARAMS ((char *from, char *to, int n));
61void convert_int_to_ascii PARAMS ((char *from, char *to, int n));
62void prepare_resume_reply PARAMS ((char *buf, char status, unsigned char sig));
63
64void decode_m_packet PARAMS ((char *from, CORE_ADDR *mem_addr_ptr,
65 unsigned int *len_ptr));
66void decode_M_packet PARAMS ((char *from, CORE_ADDR *mem_addr_ptr,
67 unsigned int *len_ptr, char *to));
68
69
70/* Functions from utils.c */
71
72void perror_with_name PARAMS ((char *string));