aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/interp.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1997-09-10 22:47:12 +0000
committerAndrew Cagney <cagney@redhat.com>1997-09-10 22:47:12 +0000
commitcad7297e805c8c4ed5c45196f0c8c0ee1b7b0bfa (patch)
tree4092626d810685e0ae5038e32d19ada0a89562ee /sim/v850/interp.c
parent43898c918f3ed9bd3391c5f63ed1e29beb778c4c (diff)
downloadgdb-cad7297e805c8c4ed5c45196f0c8c0ee1b7b0bfa.zip
gdb-cad7297e805c8c4ed5c45196f0c8c0ee1b7b0bfa.tar.gz
gdb-cad7297e805c8c4ed5c45196f0c8c0ee1b7b0bfa.tar.bz2
o Wordwrap usage messages from sim-options
o Clarify how to use alias options o use in sim-watch (better usage message) o Don't pass something on the stack into the watch-point interrupt hander.
Diffstat (limited to 'sim/v850/interp.c')
-rw-r--r--sim/v850/interp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/v850/interp.c b/sim/v850/interp.c
index e77cb48..753996f 100644
--- a/sim/v850/interp.c
+++ b/sim/v850/interp.c
@@ -63,7 +63,9 @@ do_interrupt (sd, data)
SIM_DESC sd;
void *data;
{
- enum interrupt_type inttype = *(int*)data;
+ char **interrupt_name = (char**)data;
+ enum interrupt_type inttype;
+ inttype = (interrupt_name - STATE_WATCHPOINTS (sd)->interrupt_names);
/* Disable further interrupts. */
PSW |= PSW_ID;
/* Indicate that we're doing interrupt not exception processing. */