This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Function return type checking
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Klee Dienes <kdienes at apple dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>,gdb-patches at sources dot redhat dot com
- Date: Tue, 12 Mar 2002 10:55:56 -0500
- Subject: Re: [RFA] Function return type checking
- References: <3B4ED0FE-35A5-11D6-A901-0030653FA4C6@apple.com>
>> Is this feature intended for C or ObjectiveC developers?
>
> I'd intend for this to be used by everyone. We specifically added it in response to bug reports from people making heavy use of the system math libraries; as well as from Cocoa (Objective-C) developers making heavy use of functions returning NSRect objects. The reason it's of interest to me in preparing the Objective-C patches is that much of the Objective-C GDB code makes use of being able to pass 'expected_type' arguments to the modified functions, and I'd rather not have to re-architect all those calls before submitting the patches.
So there are two reasons for the change? The infrastructure you need
for objective C and a user visible interface change. Can you expand a
little on the objective C problems. If objective C has good reason for
this infrastructure than I can't see why that part shouldn't go in.
enjoy,
Andrew