This is the mail archive of the
mailing list for the GDB project.
Re: Mingw GDB build fails for M16C target
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Tue, 28 Apr 2009 22:35:11 -0400
- Subject: Re: Mingw GDB build fails for M16C target
- References: <82C3BC9106BCE149B63464D79D0A22FD0A68110C@sohm.kpit.com> <email@example.com>
On Tue, Apr 28, 2009 at 03:57:24PM -0700, Kevin Buettner wrote:
> It appears to me that comment, "Oddly, the gdb/sim interface uses host
> signal numbers...", isn't true. My patch deletes this comment in
> addition to using TARGET_SIGNAL_foo instead of SIGfoo. If you look at
> remote-sim.c, you'll see that `enum target_signal' (which defines the
> various TARGET_SIGNAL_foo constants) is used throughout the file.
Shouldn't this be the same as common/sim-signal.c? sim_signal_to_host
uses native numbers and sim_signal_to_target uses GDB protocol
Then again, I'm totally baffled by this bit of the sim. It looks like
sim_stop_reason returns a target signal and the callers check it
against a host signal???