Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: gdb-patches@sourceware.org
Subject: Re: [RFA/dwarf 2/2] Mark all functions as prototyped except C functions.
Date: Thu, 16 May 2013 17:52:00 -0000	[thread overview]
Message-ID: <51951CD7.3070003@earthlink.net> (raw)
In-Reply-To: <20130516073804.GE5555@adacore.com>

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


      parent reply	other threads:[~2013-05-16 17:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13 10:17 [RFA/commit] DWARF: Mark all Ada functions as prototyped Joel Brobecker
2013-05-13 15:31 ` Tom Tromey
2013-05-15 13:19   ` Joel Brobecker
2013-05-15 13:20     ` [RFA/dwarf 1/2]: Add DW_LANG_UPC support in set_cu_language Joel Brobecker
2013-05-15 15:04       ` Tom Tromey
2013-05-16  7:40         ` Checked in: " Joel Brobecker
2013-05-15 13:20     ` [RFA/dwarf 2/2] Mark all functions as prototyped except C functions Joel Brobecker
2013-05-15 15:11       ` Tom Tromey
2013-05-16  7:38         ` Joel Brobecker
2013-05-16  8:14           ` Joel Brobecker
2013-05-16 13:22             ` Tom Tromey
2013-05-17  5:07               ` Joel Brobecker
2013-05-17 15:06                 ` Tom Tromey
2013-05-20  9:48                   ` Checked in: " Joel Brobecker
2013-05-16 17:52           ` Stan Shebs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51951CD7.3070003@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox