This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: gdbarch.c problem building for cygwin
- To: ac131313 at cygnus dot com
- Subject: Re: gdbarch.c problem building for cygwin
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Mon, 12 Jun 2000 02:09:02 +0200
- CC: cgf at cygnus dot com, gdb at sourceware dot cygnus dot com
- References: <20000611124302.A2804@cygnus.com> <394425AE.E1228A9E@cygnus.com>
Date: Mon, 12 Jun 2000 09:50:06 +1000
From: Andrew Cagney <ac131313@cygnus.com>
Chris Faylor wrote:
> FIX_CALL_DUMMY expands to a { .. } block on i386 so this doesn't
> work too well. Changing the line to this:
>
> XSTRING ((FIX_CALL_DUMMY (dummy, pc, fun, nargs, args, type, gcc_p))));
>
> "fixes" the problem but I fear that we would just be using a gcc
> specific extension by doing this.
Very gcc specific. I'll go through and see which ones can't be
expanded, sigh.
The obvious solution is of course to change FIX_CALL_DUMMY for the
i386 :-). I'll turn it into a proper function in i386-tdep.c, and
change config/i386/tm-i386.h accordingly. That wouldn't fix
i[3456]86-*-sunos* but we've almost decided that that one is obsolete
:-).
Mark