DOS/Windows-specific code in sim/

DJ Delorie dj@redhat.com
Tue May 8 09:30:00 GMT 2001


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...



More information about the Gdb mailing list