diff options
author | dvshkurko <dvshkurko@yandex-team.ru> | 2022-02-10 16:45:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:52 +0300 |
commit | c768a99151e47c3a4bb7b92c514d256abd301c4d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c | |
parent | 321ee9bce31ec6e238be26dbcbe539cffa2c3309 (diff) | |
download | ydb-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-line.c')
-rw-r--r-- | contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c b/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c index 8f21363be9..14639ca429 100644 --- a/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c +++ b/contrib/tools/yasm/modules/dbgfmts/dwarf2/dwarf2-line.c @@ -532,21 +532,21 @@ dwarf2_generate_line_bc(yasm_bytecode *bc, /*@null@*/ void *d) yasm_linemap_lookup(info->linemap, bc->line, &pathname, &info->loc.line); dirlen = yasm__splitpath(pathname, &filename); - char * new_dir_name = yasm_replace_path( - dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, - pathname, dirlen); - dirlen = strlen(new_dir_name); + char * new_dir_name = yasm_replace_path( + dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, + pathname, dirlen); + dirlen = strlen(new_dir_name); /* Find file index; just linear search it unless it was the last used */ if (info->lastfile > 0 && dwarf2_filename_equals(&dbgfmt_dwarf2->filenames[info->lastfile-1], - dbgfmt_dwarf2->dirs, new_dir_name, dirlen, + dbgfmt_dwarf2->dirs, new_dir_name, dirlen, filename)) info->loc.file = info->lastfile; else { for (i=0; i<dbgfmt_dwarf2->filenames_size; i++) { if (dwarf2_filename_equals(&dbgfmt_dwarf2->filenames[i], - dbgfmt_dwarf2->dirs, new_dir_name, dirlen, + dbgfmt_dwarf2->dirs, new_dir_name, dirlen, filename)) break; } @@ -555,7 +555,7 @@ dwarf2_generate_line_bc(yasm_bytecode *bc, /*@null@*/ void *d) info->loc.file = i+1; info->lastfile = i+1; } - yasm_xfree(new_dir_name); + yasm_xfree(new_dir_name); if (dwarf2_dbgfmt_gen_line_op(info->debug_line, info->state, &info->loc, NULL)) return 1; @@ -682,11 +682,11 @@ static int dwarf2_generate_filename(const char *filename, void *d) { yasm_dbgfmt_dwarf2 *dbgfmt_dwarf2 = (yasm_dbgfmt_dwarf2 *)d; - char *deb_name = yasm_replace_path( - dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, - filename, strlen(filename)); - dwarf2_dbgfmt_add_file(dbgfmt_dwarf2, 0, deb_name); - yasm_xfree(deb_name); + char *deb_name = yasm_replace_path( + dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, + filename, strlen(filename)); + dwarf2_dbgfmt_add_file(dbgfmt_dwarf2, 0, deb_name); + yasm_xfree(deb_name); return 0; } @@ -1130,9 +1130,9 @@ yasm_dwarf2__dir_file(yasm_object *object, yasm_valparamhead *valparams, if (yasm_vp_string(vp)) { /* Just a bare filename */ yasm_object_set_source_fn(object, yasm_vp_string(vp)); - object->deb_filename = yasm_replace_path( - dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, - yasm_vp_string(vp), strlen(yasm_vp_string(vp))); + object->deb_filename = yasm_replace_path( + dbgfmt_dwarf2->dbgfmt.module->replace_map, dbgfmt_dwarf2->dbgfmt.module->replace_map_size, + yasm_vp_string(vp), strlen(yasm_vp_string(vp))); return; } |