This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[Revert] signals and H8 sim
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com, kazu at cs dot umass dot edu, dvenkat at noida dot hcltech dot com
- Date: Tue, 22 Jul 2003 12:11:01 -0700
- Subject: [Revert] signals and H8 sim
Unfortunately, I've had to back out this change -- it has the unfortunate
effect of breaking GDB's breakpoints. When we take a breakpoint trap,
the value of R0 can be anything (whatever it was in the user program
at the time of the trap), so there's no way to test it for a certain value.
We'll have to give this some more thought...
2003-07-22 Michael Snyder <msnyder@redhat.com>
* compile.c (sim_resume): Revert 6-24 change, it does not
work with gdb breakpoints.
Index: compile.c
===================================================================
RCS file: /cvs/src/src/sim/h8300/compile.c,v
retrieving revision 1.34
diff -p -r1.34 compile.c
*** compile.c 18 Jul 2003 00:10:41 -0000 1.34
--- compile.c 22 Jul 2003 19:06:40 -0000
*************** sim_resume (SIM_DESC sd, int step, int s
*** 3577,3588 ****
--- 3577,3590 ----
sim_engine_set_run_state (sd, sim_exited,
SIM_WEXITSTATUS (h8_get_reg (sd, 0)));
}
+ #if 0
else if (SIM_WIFSTOPPED (h8_get_reg (sd, 0)))
{
/* Pass the stop signal up to gdb. */
sim_engine_set_run_state (sd, sim_stopped,
SIM_WSTOPSIG (h8_get_reg (sd, 0)));
}
+ #endif
else
{
/* Treat it as a sigtrap. */