]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Bits
authorPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 13:19:30 +0000 (14:19 +0100)
committerPetr Machata <pmachata@redhat.com>
Wed, 18 Feb 2009 13:19:30 +0000 (14:19 +0100)
src/dwarflint-hl.cc
src/dwarflint.c

index 970b8621585ef332b594fa8280f6017e783f86cd..fb7ae9264ae26043cab0ac3e0421ec14ae96c201 100644 (file)
@@ -70,7 +70,7 @@ hl_ctx_delete (hl_ctx *hlctx)
 }
 
 bool
-check_matching_ranges (struct hl_ctx *hlctx)
+check_matching_ranges (hl_ctx *hlctx)
 {
   struct where where_ref = WHERE (sec_info, NULL);
   struct where where_ar = WHERE (sec_aranges, NULL);
index ddc480f70363ea43228ba200adb5971607880a14..2f2ab3161d8a8302ab41098d98d463811cb6dfa4 100644 (file)
@@ -967,6 +967,7 @@ process_file (int fd __attribute__((unused)),
   struct abbrev_table *abbrev_chain = NULL;
   struct cu *cu_chain = NULL;
   struct read_ctx ctx;
+  struct hl_ctx *hlctx = hl_ctx_new (dwarf);
 
   /* If we got Dwarf pointer, .debug_abbrev and .debug_info are
      present inside the file.  But let's be paranoid.  */
@@ -998,8 +999,6 @@ process_file (int fd __attribute__((unused)),
   if (loc_data.data != NULL && cu_chain != NULL)
     check_loc_or_range_structural (dwarf, &loc_data, cu_chain);
 
-  struct hl_ctx *hlctx = hl_ctx_new (dwarf);
-
   if (aranges_data.data != NULL)
     {
       read_ctx_init (&ctx, dwarf, aranges_data.data);