H8300 simulator on MinGW fails to compile.

Chris Johns chrisj@rtems.org
Thu Sep 14 01:22:00 GMT 2006


Daniel Jacobowitz wrote:
> First, a minor point: your patch was reversed, deleting instead
> of adding.  New file second on the diff command line.

Oops. I will not post again until your second point is resolved.

> 
> On Thu, Sep 14, 2006 at 06:10:08AM +1000, Chris Johns wrote:
>> ../../../gdb-6.5/sim/h8300/compile.c: In function `sim_resume':
>> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: `SIGBUS' undeclared 
>> (first use in this function)
>> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: (Each undeclared 
>> identifier is reported only once
>> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: for each function it 
>> appears in.)
>> make[3]: *** [compile.o] Error 1
> 
> Some work has been done to reduce the use of host signal numbers in the
> simulator.  Rather than adding more bandaids, we need to do more to
> switch to either the SIM_* or TARGET_SIGNAL_* constants.  The host's
> numbers just aren't relevant.

Did wonder why simulator signals needed to equated to the host signals. I am still not 
clear why the code is like this.

> 
> Unfortunately all the code is somewhat tangled in multiple sims.
> 

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* ?

Regards
Chris



More information about the Gdb-patches mailing list