diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-02-22 08:52:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-02-22 08:52:21 +0000 |
commit | baa7ae6f10462c17d2472868e6b1c08d0ba880ae (patch) | |
tree | 65209fc2c67d9206338cce6e704dd9e13a383861 /sim/d10v/interp.c | |
parent | 1287d1cc37aca000234065fd0472a3a9846f4017 (diff) | |
download | gdb-baa7ae6f10462c17d2472868e6b1c08d0ba880ae.zip gdb-baa7ae6f10462c17d2472868e6b1c08d0ba880ae.tar.gz gdb-baa7ae6f10462c17d2472868e6b1c08d0ba880ae.tar.bz2 |
When SIM_HAVE_ENVIRONMENT: use sim_set_trace() to enable tracing
instead of sim_trace() to run the program; include support for ``-o''
option (operating environment); when a signal occurs, only continue
execution when operating environment mode.
Update d10v.
Diffstat (limited to 'sim/d10v/interp.c')
-rw-r--r-- | sim/d10v/interp.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index 80898ab..91ebee5 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -1072,20 +1072,12 @@ sim_resume (sd, step, siggnal) State.exception = SIGTRAP; } -int -sim_trace (sd) - SIM_DESC sd; +void +sim_set_trace (void) { - enum sim_stop reason; - static int sigrc = 0; #ifdef DEBUG d10v_debug = DEBUG; #endif - /* NOTE: SIGRC starts with zero and is then, always the value - returned by the last sim_stop_reason() call. */ - sim_resume (sd, 0, sigrc); - sim_stop_reason (sd, &reason, &sigrc); - return (reason != sim_stopped || sigrc != SIGINT); } void |