diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2006-10-02 03:21:28 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2006-10-02 03:21:28 +0000 |
commit | 466b1d33082997a5a2f267897b435364cde0131c (patch) | |
tree | 73899397915659fc9f158b4ae45d0d6c52810a58 /sim/cris/cris-sim.h | |
parent | 1654a6f72803b321cfe3d7ac28ea1abed5d26fd9 (diff) | |
download | gdb-466b1d33082997a5a2f267897b435364cde0131c.zip gdb-466b1d33082997a5a2f267897b435364cde0131c.tar.gz gdb-466b1d33082997a5a2f267897b435364cde0131c.tar.bz2 |
* cris/cris-sim.h (enum cris_unknown_syscall_action_type)
(cris_unknown_syscall_action): Declare.
* cris/sim-if.c (cris_unknown_syscall_action): Define.
(cris_options): Add cris-unknown-syscall option.
(cris_option_handler): Correct comment about and error message for
invalid --cris-cycles argument. Handle --cris-unknown-syscall.
* cris/traps.c: Include stdarg.h
(cris_unknown_syscall): New function.
(cris_break_13_handler): Instead of sim_io_eprintf and
sim_engine_halt, call cris_unknown_syscall to handle more or less
unknown syscalls. Adjust code as necessary to handle return
value.
Diffstat (limited to 'sim/cris/cris-sim.h')
-rw-r--r-- | sim/cris/cris-sim.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/cris/cris-sim.h b/sim/cris/cris-sim.h index 49a6f61..b2dc5b6 100644 --- a/sim/cris/cris-sim.h +++ b/sim/cris/cris-sim.h @@ -87,6 +87,9 @@ extern USI crisv32f_break_handler (SIM_CPU *, USI, USI); extern USI cris_break_13_handler (SIM_CPU *, USI, USI, USI, USI, USI, USI, USI, USI); extern char cris_have_900000xxif; +enum cris_unknown_syscall_action_type + { CRIS_USYSC_MSG_STOP, CRIS_USYSC_MSG_ENOSYS, CRIS_USYSC_QUIET_ENOSYS }; +extern enum cris_unknown_syscall_action_type cris_unknown_syscall_action; enum cris_interrupt_type { CRIS_INT_NMI, CRIS_INT_RESET, CRIS_INT_INT }; extern int crisv10deliver_interrupt (SIM_CPU *, enum cris_interrupt_type, |