diff options
author | dvshkurko <dvshkurko@yandex-team.ru> | 2022-02-10 16:45:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:51 +0300 |
commit | 321ee9bce31ec6e238be26dbcbe539cffa2c3309 (patch) | |
tree | 14407a2757cbf29eb97e266b7f07e851f971000c /contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c | |
parent | 2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (diff) | |
download | ydb-321ee9bce31ec6e238be26dbcbe539cffa2c3309.tar.gz |
Restoring authorship annotation for <dvshkurko@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c')
-rw-r--r-- | contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c b/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c index 96d24db06a..667665e89c 100644 --- a/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c +++ b/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c @@ -326,21 +326,21 @@ yasm_dwarf2__generate_info(yasm_object *object, yasm_section *debug_line, /* input filename */ abc->len += dwarf2_add_abbrev_attr(abbrev, DW_AT_name, DW_FORM_string); - if (!object->deb_filename) { - object->deb_filename = yasm_replace_path( - dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, - object->src_filename, strlen(object->src_filename)); - } - dwarf2_append_str(debug_info, object->deb_filename); + if (!object->deb_filename) { + object->deb_filename = yasm_replace_path( + dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, + object->src_filename, strlen(object->src_filename)); + } + dwarf2_append_str(debug_info, object->deb_filename); /* compile directory (current working directory) */ abc->len += dwarf2_add_abbrev_attr(abbrev, DW_AT_comp_dir, DW_FORM_string); buf = yasm__getcwd(); - char * new_cwd_name = yasm_replace_path( - dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, - buf, strlen(buf)); - dwarf2_append_str(debug_info, new_cwd_name); - yasm_xfree(new_cwd_name); + char * new_cwd_name = yasm_replace_path( + dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, + buf, strlen(buf)); + dwarf2_append_str(debug_info, new_cwd_name); + yasm_xfree(new_cwd_name); yasm_xfree(buf); /* producer - assembler name */ |