summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/debugedit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 9f8dcd0fb..6bea88551 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -2825,7 +2825,8 @@ main (int argc, char *argv[])
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;