On 12/01/2015 01:02 AM, Gary Funck wrote:
This support is enabled via
the -dwarf-2-upc compilation switch.  It is not enabled by default,
because some older versions of GDB will abort when encountering
the UPC-related DWARF extensions.

The way we usually handle extensions that cause old debuggers to crash is to control them with dwarf_strict, rather than introduce a new flag.


+
+      if (use_upc_dwarf2_extensions && TYPE_HAS_THREADS_FACTOR (type))
+        {
+         add_AT_flag (subrange_die, DW_AT_upc_threads_scaled, 1);
+       }

You don't need the extra blank line or the braces.

Jason

Reply via email to