On Mon, May 12, 2014 at 11:22:11PM -0400, Jason Merrill wrote: > On 04/28/2014 08:37 AM, Mark Wielaard wrote: > >The debugger cares about the actual underlying type used if the language > >can use multiple. Either explicitly assigned by the user or implicitly > >as derived by the language/compile flags used. So the lang hook should > >provide one in both cases, if appropriate. > > Why do you want to do this for C? It seems to me that this is only > interesting in C++ because of overload resolution.
So the debugger doesn't have to guess the properties of the enum's underlying base type, like size, encoding and signedness. Which are implementation defined and might differ between enums even in C depending on whether -fshort-enums was used (which is the default on some arches). Cheers, Mark