+2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
+ DW_FORM_data8 as location list pointers only for DWARF < 4.
+
2011-07-26 Jakub Jelinek <jakub@redhat.com>
* NEWS: Mention .debug_macro support.
case DW_AT_GNU_call_site_data_value:
case DW_AT_GNU_call_site_target:
case DW_AT_GNU_call_site_target_clobbered:
- if (form == DW_FORM_data4
- || form == DW_FORM_data8
+ if ((dwarf_version < 4
+ && (form == DW_FORM_data4 || form == DW_FORM_data8))
|| form == DW_FORM_sec_offset)
{
/* Process location list. */
break;
case DW_AT_ranges:
- if (form == DW_FORM_data4
- || form == DW_FORM_data8
+ if ((dwarf_version < 4
+ && (form == DW_FORM_data4 || form == DW_FORM_data8))
|| form == DW_FORM_sec_offset)
{
/* Process range list. */
case DW_AT_GNU_call_site_data_value:
case DW_AT_GNU_call_site_target:
case DW_AT_GNU_call_site_target_clobbered:
- if (form == DW_FORM_data4
- || form == DW_FORM_data8
+ if ((dwarf_version < 4
+ && (form == DW_FORM_data4 || form == DW_FORM_data8))
|| form == DW_FORM_sec_offset)
printf (_("(location list)"));
/* Fall through. */