This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [C++0x] implementing forward declarations for enums


On 10/12/2010 11:37 AM, Rodrigo Rivas wrote:
The other formats are not supported in my linux box, I think.
The only problem I can see is that the STABS treats the enum V as
incomplete because it lack debugging information (it called
finish_enum but not finish_enum_value_list).

I think that's fine. In real code, presumably some other file will provide the enumerator list for V, and otherwise treating it as incomplete is a good enough approximation; an opaque enum declaration is not a definition even though the type is considered complete in the C++ sense.


If one file has the enumerator list and another doesn't, does GDB handle that properly with DWARF output (making the list available while debugging code from the file that doesn't have the list)?

Other option would be to use the  flag of the VALUE_LIST to modify the
debuggers backed.

Right; earlier I was suggesting to change ENUM_HAS_VALUE_LIST_P to be a language-independent macro, something like "ENUM_LACKS_VALUE_LIST".


Jason


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