Re: DOS/Windows-specific code in sim/

DJ Delorie
2001-05-08T09:30:00Z

Eli Zaretskii <eliz@is.elta.co.il> writes:
> Does someone know why this is done? If SIGTRAP etc. are not defined,
> the code should simply not reference it.

The problem is that the simulators generate these signals (the
simulated environment supports them) but they're translated to the
hosts's SIG* values to "standardize" how they're handled by gdb. If
the sim supports more signals than the host, there needs to be some
fake value they're translated into.

Not that I agree with the technique, but that's how it is...