From c16966a0043dc173fcaab5d3f8b754b4e9c9ceb7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 22 Jun 2010 17:08:43 -0700 Subject: [PATCH] Fix check_constant_offset braino. --- libdw/ChangeLog | 2 ++ libdw/dwarf_getlocation.c | 9 ++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 5d274cb..1765858 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,5 +1,7 @@ 2010-06-22 Roland McGrath + * dwarf_getlocation.c (check_constant_offset): data[48] are constant. + * dwarf_getsrclines.c: Fix signed comparison warning in extended opcode parsing. diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index 56091cd..e960ef9 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. */ -- 2.7.4