This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unifying the GCC Debugging Interface
On Tue, Nov 20, 2012 at 12:03 PM, Andrew MacLeod <amacleod@redhat.com> wrote:
> On 11/14/2012 08:12 PM, Lawrence Crowl wrote:
>>
>> Diego and I seek your comments on the following (loose) proposal.
>>
>>
>> We propose to provide several function overload sets, as below.
>>
>>
>> dump_pretty
>>
>> This function overload set provides the bulk of the printing.
>> They will use the existing pretty-printer functions in their
>> implementation.
>
> Since this is the one that would be most commonly used, could we just call
> it "dump"?
I think it makes sense, yeah.
> assuming there aren't any varargs, why not simply move the 'FILE *'
> parameter to the end, default it to STDERR, and then only have the one
> function... I'm certainly not locked into the old style must-have-FILE
> first paradigm.
Yes, good point.
Diego.