diff options
author | Roland McGrath <roland@redhat.com> | 2010-06-22 17:08:43 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-06-22 17:08:43 -0700 |
commit | c16966a0043dc173fcaab5d3f8b754b4e9c9ceb7 (patch) | |
tree | 4a6c4129868c34680b9c90e366d1ae76fad241cb /libdw/dwarf_getlocation.c | |
parent | 499b8ff4be1b82f47b04529e6cf22f94d6bd45ac (diff) |
Fix check_constant_offset braino.
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r-- | libdw/dwarf_getlocation.c | 9 |
1 files changed, 2 insertions, 7 deletions
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. */ |