* breakpoint.c, breakpoint.h (breakpoint_init_inferior): New function
[deliverable/binutils-gdb.git] / gdb / remote-sim.h
CommitLineData
b562a186
DE
1/* This file defines the interface between the simulator and 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20#if !defined (REMOTE_SIM_H)
21#define REMOTE_SIM_H 1
22
23/* Main simulator globals ... */
24
25extern int sim_verbose;
26
27/* Main simulator entry points ...
28
29 All functions return 0 for success and non-zero for failure. */
30
31/* Initialize the simulator. This function is called when the simulator
32 is selected from the command line. ARGS is passed from the command line
33 and can be used to select whatever run time options the simulator provides.
40b92220
JK
34 ARGS is the raw character string and must be parsed by the simulator.
35
36 Returns 0 for success, non-zero for failure (FIXME: how do we say what
37 kind of failure it was?). */
b562a186
DE
38
39int sim_open PARAMS ((char *name));
40
41/* Load program PROG into the simulator.
42 We use "void *" instead of "bfd *" to isolate this file from BFD. */
43
44int sim_load PARAMS ((void *bfd_handle, char *args));
45
46/* Set the arguments and environment for the program loaded into the
47 simulator. ARGV and ENV are NULL terminated lists of pointers.
48 If the simulator doesn't support setting arguments, print an error message
49 and return non-zero. */
50
51int sim_set_args PARAMS ((char **argv, char **env));
52
53/* Fetch register REGNO and store the raw value in BUF. */
54
55int sim_fetch_register PARAMS ((int regno, char *buf));
56
57/* Store register REGNO from BUF (in raw format). */
58
59int sim_store_register PARAMS ((int regno, char *buf));
60
61/* Kill the running program.
62 This may involve closing any open files and deleting any mmap'd areas. */
63
64int sim_kill PARAMS ((void));
65
66/* Read LENGTH bytes of the simulated program's memory and store in BUF. */
67
68int sim_read PARAMS ((CORE_ADDR mem, char *buf, int length));
69
70/* Store LENGTH bytes from BUF in the simulated program's memory. */
71
72int sim_write PARAMS ((CORE_ADDR mem, char *buf, int length));
73
74/* Print some interesting information about the simulator. */
75
76int sim_info PARAMS ((void));
77
78/* Set the simulated cpu's program counter to PC. */
79
80int sim_set_pc PARAMS ((CORE_ADDR pc));
81
82/* Fetch why the program stopped. */
83
84int sim_stop_signal PARAMS ((void));
85
86/* Run (or resume) the program. */
87
88int sim_resume PARAMS ((int step, int siggnal));
89
90#endif /* !defined (REMOTE_SIM_H) */
This page took 0.045584 seconds and 4 git commands to generate.