This is the mail archive of the gdb-prs@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]

[Bug macros/13205] Add support for __FILE__, __LINE__.


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.


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