From c16966a0043dc173fcaab5d3f8b754b4e9c9ceb7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 22 Jun 2010 17:08:43 -0700 Subject: Fix check_constant_offset braino. --- libdw/dwarf_getlocation.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libdw/dwarf_getlocation.c') diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index 56091cd9..e960ef9e 100644 --- a/libdw/dwarf_getlocation.c +++ b/libdw/dwarf_getlocation.c @@ -165,16 +165,11 @@ check_constant_offset (Dwarf_Attribute *attr, case DW_FORM_data1: case DW_FORM_data2: + case DW_FORM_data4: + case DW_FORM_data8: case DW_FORM_sdata: case DW_FORM_udata: break; - - case DW_FORM_data4: - case DW_FORM_data8: - /* These are loclistptr, not constants. - XXX check cu->version > 3??? - */ - return 1; } /* Check whether we already cached this location. */ -- cgit v1.2.3