diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-10 22:47:12 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-10 22:47:12 +0000 |
commit | cad7297e805c8c4ed5c45196f0c8c0ee1b7b0bfa (patch) | |
tree | 4092626d810685e0ae5038e32d19ada0a89562ee /sim/v850 | |
parent | 43898c918f3ed9bd3391c5f63ed1e29beb778c4c (diff) | |
download | gdb-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')
-rw-r--r-- | sim/v850/ChangeLog | 5 | ||||
-rw-r--r-- | sim/v850/interp.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sim/v850/ChangeLog b/sim/v850/ChangeLog index a2c3f1b..b330611 100644 --- a/sim/v850/ChangeLog +++ b/sim/v850/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 11 08:40:03 1997 Andrew Cagney <cagney@b1.cygnus.com> + + * interp.c: Compute inttype from the interrupt_names index that + was passed in. + Wed Sep 10 10:25:40 1997 Andrew Cagney <cagney@b1.cygnus.com> * simops.c (trace_input): Use trace_printf instead of 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. */ |