aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c
diff options
context:
space:
mode:
authordvshkurko <dvshkurko@yandex-team.ru>2022-02-10 16:45:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:52 +0300
commitc768a99151e47c3a4bb7b92c514d256abd301c4d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-info.c
parent321ee9bce31ec6e238be26dbcbe539cffa2c3309 (diff)
downloadydb-c768a99151e47c3a4bb7b92c514d256abd301c4d.tar.gz
Restoring authorship annotation for <dvshkurko@yandex-team.ru>. Commit 2 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.c22
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 667665e89c..96d24db06a 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 */