This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Where to set correct value for tdep->struct_return for Cygwin?
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 20 Mar 2003 16:20:19 +0100
- Subject: Where to set correct value for tdep->struct_return for Cygwin?
- Reply-to: gdb at sources dot redhat dot com
Hi,
I just found the following problem:
In i386-tdep.c::i386_gdbarch_init(), tdep->struct_return is set to
pcc_struct_return by default. Several i386 targets set this value
in their appropriate _init function to reg_struct_return (e. g. the
bsd and interix targets).
Cygwin is using reg_struct_return as well but unfortunately in contrast
to Interix it has no own tdep.c file and so there's no appropriate _init
function as e. g. i386_interix_init_abi() available to set that value.
This results in having tdep->struct_return still set to pcc_struct_return
and about 25 fails in the testsuite.
So the question is, where to set that value? Shall we add a new cygwin-tdep.c
file, just to set this one value? Or is there some already existing obvious
place to do this? win32-nat.c seems to be not a good chice, btw.
Corinna
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat dot com