No need to call edit_dwarf2() if debugedit is invoked just to extract
build-id (with `-i -n'). Otherwise, we will get `DWARF version 0
unhandled' warning for compressed .debug files:
/usr/lib/rpm/debugedit: ./usr/lib/debug/...e.ko.debug: DWARF version 0 unhandled
Context: We have kernel modules elfcompressed in ALT.
fprintf (stderr, "Stabs debuginfo not supported: %s\n", file);
break;
}
- if (strcmp (name, ".debug_info") == 0)
+ if (!(do_build_id && no_recompute_build_id && !base_dir && !dest_dir)
+ && strcmp (name, ".debug_info") == 0)
edit_dwarf2 (dso);
break;