From 53fd5bd206c743d933e4e72860e23e44f9f7e26c Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Tue, 24 Apr 2012 22:36:46 +0200 Subject: [PATCH] DWARF: Actually emit the list of files, not just the first filename over and over again, i.e. use index i, not 0. --- ir/be/bedwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/bedwarf.c b/ir/be/bedwarf.c index 0382466a9..1d3b66a84 100644 --- a/ir/be/bedwarf.c +++ b/ir/be/bedwarf.c @@ -228,7 +228,7 @@ static void emit_line_info(dwarf_t *env) /* file list */ for (i = 0; i < ARR_LEN(env->file_list); ++i) { - emit_string(env->file_list[0]); + emit_string(env->file_list[i]); emit_uleb128(1); /* directory */ emit_uleb128(0); /* modification time */ emit_uleb128(0); /* file length */ -- 2.20.1