public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug macros/13205] Add support for __FILE__, __LINE__.
Date: Wed, 16 May 2012 19:52:00 -0000	[thread overview]
Message-ID: <bug-13205-4717-EOWr5BCDid@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13205-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=13205

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-05-16 19:52:25 UTC ---
I have a patch for the reported issue, but gcc actually has
many special defines...

/* Different flavors of builtin macro.  _Pragma is an operator, but we
   handle it with the builtin code for efficiency reasons.  */
enum cpp_builtin_type
{
  BT_SPECLINE = 0,        /* `__LINE__' */
  BT_DATE,            /* `__DATE__' */
  BT_FILE,            /* `__FILE__' */
  BT_BASE_FILE,            /* `__BASE_FILE__' */
  BT_INCLUDE_LEVEL,        /* `__INCLUDE_LEVEL__' */
  BT_TIME,            /* `__TIME__' */
  BT_STDC,            /* `__STDC__' */
  BT_PRAGMA,            /* `_Pragma' operator */
  BT_TIMESTAMP,            /* `__TIMESTAMP__' */
  BT_COUNTER,            /* `__COUNTER__' */
  BT_FIRST_USER,        /* User defined builtin macros.  */
  BT_LAST_USER = BT_FIRST_USER + 31
};

I didn't try to handle them all.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  reply	other threads:[~2012-05-16 19:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 21:31 [Bug macros/13205] New: " dje at google dot com
2012-05-16 19:52 ` tromey at redhat dot com [this message]
2012-05-16 20:06 ` [Bug macros/13205] " tromey at redhat dot com
2012-05-16 20:32 ` tromey at redhat dot com
2012-05-16 20:32 ` cvs-commit at gcc dot gnu.org

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=bug-13205-4717-EOWr5BCDid@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).