This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: H8300 simulator on MinGW fails to compile.
On Thu, Sep 14, 2006 at 11:22:15AM +1000, Chris Johns wrote:
> Did wonder why simulator signals needed to equated to the host signals. I
> am still not clear why the code is like this.
No good reason. It's historical ugliness.
> I see what you mean.
>
> The TARGET_SIGNAL_* shows up in the ppc, d10v, and arm sims. The host type
> SIG* such as SIGBUS appear to be in most of the sims.
>
> Is the solution to change sim-signal.c to use TARGET_SIGNAL_* and then
> change the effected sim files to SIM_SIG* ?
I'm not entirely sure any more; it's been ages since I looked at these.
I think the SIM_SIG* constants may be older than the TARGET_SIGNAL_*
constants; I don't think we need both... but I really don't know. The
problem is that a given int variable could hold any of the three right
now.
It's a righteous mess.
--
Daniel Jacobowitz
CodeSourcery