diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 16:40:59 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 16:40:59 +0000 |
commit | 212b606321592738fa63c2b70616932c50e00a6b (patch) | |
tree | 3b9558aece7a6924e8328776228c18af42f58647 /binutils/dwarf.c | |
parent | 24d3216fd914347928f66a31c5b3be7c98e90be8 (diff) | |
download | gdb-212b606321592738fa63c2b70616932c50e00a6b.zip gdb-212b606321592738fa63c2b70616932c50e00a6b.tar.gz gdb-212b606321592738fa63c2b70616932c50e00a6b.tar.bz2 |
binutils/
* dwarf.c (read_and_display_attr_value): Recognize DW_FORM_data4 and
DW_FORM_data8 as location list pointers only for DWARF < 4.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index ae1cd80..776f775 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1485,8 +1485,8 @@ read_and_display_attr_value (unsigned long attribute, 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. */ @@ -1516,8 +1516,8 @@ read_and_display_attr_value (unsigned long attribute, 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. */ @@ -1734,8 +1734,8 @@ read_and_display_attr_value (unsigned long attribute, 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. */ |