This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/dwarf 2/2] Mark all functions as prototyped except C functions.


On 5/16/13 12:38 AM, Joel Brobecker wrote:
>> Joel> +  /* The DWARF standard implies that the DW_AT_prototyped attribute
>> Joel> +     is only meaninful to C.  So assume that non-C functions are
>> Joel> +     always prototyped.  */
>> Joel> +  if (cu->language != language_c)
>> Joel> +    return 1;
>>
>> Can Objective C have un-prototyped functions?
>> I don't know.  But if it can, then it should be checked here.
> 
> Hmmm, I am not 100% sure, but some internet searches suggest
> that this is probably true. Thanks! Attached is the updated patch,
> just adding language_objc to the condition, and adjusting the
> comment accordingly.

Objective-C (1.0 or 2.0) doesn't require prototypes; in general ObjC
tries to be purely an extension to C, and orthogonal to C dialect.

Stan
stan@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]