From 9ecb77b91abad6ca31f0c4592b0851f5a44b5537 Mon Sep 17 00:00:00 2001 From: Lightning Date: Fri, 28 Oct 2022 19:10:07 -0700 Subject: [PATCH] Fix off by 1 errors in line generation resulting in mangled line (#25) information for decompilation --- dwarf2out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwarf2out.c b/dwarf2out.c index 14a3080..3643a0e 100644 --- a/dwarf2out.c +++ b/dwarf2out.c @@ -4659,7 +4659,7 @@ size_of_line_info () size += size_of_uleb128 (current_file); } - if (line_info->dw_line_num != current_line) + //if (line_info->dw_line_num != current_line) { line_offset = line_info->dw_line_num - current_line; line_delta = line_offset - DWARF_LINE_BASE;