]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Fix read_ctx_read_form, it returned false for DATA[124] forms
authorPetr Machata <pmachata@redhat.com>
Fri, 20 Mar 2009 17:28:41 +0000 (18:28 +0100)
committerPetr Machata <pmachata@redhat.com>
Fri, 20 Mar 2009 17:24:40 +0000 (18:24 +0100)
src/dwarflint.c

index 023625e90d466fb84903bca042878182ad025e0f..b24982be4c56cdc1a7b559a01d4e13002e855d38 100644 (file)
@@ -1513,7 +1513,7 @@ read_ctx_read_form (struct read_ctx *ctx, bool addr_64, uint8_t form,
          return false;
        if (valuep != NULL)
          *valuep = v;
-       return false;
+       return true;
       }
     case DW_FORM_data2:
       {
@@ -1522,7 +1522,7 @@ read_ctx_read_form (struct read_ctx *ctx, bool addr_64, uint8_t form,
          return false;
        if (valuep != NULL)
          *valuep = v;
-       return false;
+       return true;
       }
     case DW_FORM_data4:
       {
@@ -1531,7 +1531,7 @@ read_ctx_read_form (struct read_ctx *ctx, bool addr_64, uint8_t form,
          return false;
        if (valuep != NULL)
          *valuep = v;
-       return false;
+       return true;
       }
     case DW_FORM_data8:
       return read_ctx_read_8ubyte (ctx, valuep);