From: Petr Machata Date: Wed, 18 Feb 2009 13:19:30 +0000 (+0100) Subject: Bits X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0723fbcfa6e60dc02355be4288ac5ced4361d041;p=thirdparty%2Felfutils.git Bits --- diff --git a/src/dwarflint-hl.cc b/src/dwarflint-hl.cc index 970b86215..fb7ae9264 100644 --- a/src/dwarflint-hl.cc +++ b/src/dwarflint-hl.cc @@ -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); diff --git a/src/dwarflint.c b/src/dwarflint.c index ddc480f70..2f2ab3161 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -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);