gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / sim / rx / err.h
CommitLineData
4f8d4a38
DD
1/* err.h --- handle errors for RX simulator.
2
b811d2c2 3Copyright (C) 2008-2020 Free Software Foundation, Inc.
4f8d4a38
DD
4Contributed by Red Hat, Inc.
5
6This file is part of the GNU simulators.
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>. */
20
21enum execution_error {
22 SIM_ERR_NONE,
23 SIM_ERR_READ_UNWRITTEN_PAGES,
24 SIM_ERR_READ_UNWRITTEN_BYTES,
25 SIM_ERR_NULL_POINTER_DEREFERENCE,
26 SIM_ERR_CORRUPT_STACK,
27 SIM_ERR_NUM_ERRORS
28};
29
30enum execution_error_action {
31 SIM_ERRACTION_EXIT,
32 SIM_ERRACTION_WARN,
33 SIM_ERRACTION_IGNORE,
34 SIM_ERRACTION_DEBUG,
35 SIM_ERRACTION_NUM_ACTIONS
36};
37
38void execution_error (enum execution_error num, unsigned long address);
39void execution_error_init_standalone (void);
40void execution_error_init_debugger (void);
41void execution_error_error_all (void);
42void execution_error_warn_all (void);
43void execution_error_ignore_all (void);
44enum execution_error execution_error_get_last_error (void);
45void execution_error_clear_last_error (void);
46void execution_error_set_action (enum execution_error num,
47 enum execution_error_action act);
This page took 0.475273 seconds and 4 git commands to generate.