On 04/28/2014 08:37 AM, Mark Wielaard wrote:
On Mon, 2014-04-28 at 14:23 +0200, Jakub Jelinek wrote:
Do you want to add DW_AT_type to DW_TAG_enumeration only if it has explicit
underlying type (enum class foo: char { ... };) or even when the underlying
type is computed emplicitly (then you'd just use TREE_TYPE of the
ENUMERAL_TYPE if non-NULL).
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.
Jason